cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
129
Views
1
Helpful
5
Replies

webex integration - authentication issues recently

dbednarc
Cisco Employee
Cisco Employee

Hi Team,

I have a simple script that was working before basing on webex integration , that was pulling contents of webex spaces that I pointend.

Today I tried to do the authetnication to get the token, but I dont see the token any more in redirect url

dbednarc_0-1754395816910.png

 

I was pasting before contents of (1) and it was working

 

now I am getting :

https://www.google.com/?state=set_state_here

before I had token in this url , what changed?

how to fix that?

I tried to delete the integration and create a new one - same effect

 

1 Accepted Solution

dbednarc
Cisco Employee
Cisco Employee

Issue solved by Support :

"""

After a quick test, it appears the issue stems from the redirect URL. The URL https://www.google.pl redirects to https://www.google.com, which prevents the authorization code from appearing in the redirected URL. When I changed the redirect URL to https://www.google.com, I was able to successfully receive the code in the URL as shown below:

https://www.google.com/?code=OGY0NzBlY2UtOTUwMi00NTYzLTgwNGEtOGRjNjI1ZTgwMWE3YmQ0MDU5NzEt[REDACTED_PORTION]&state=set_state_here

 
When using a redirect URL like https://www.google.pl that internally redirects to https://www.google.com, the OAuth flow may fail to capture the authorization code properly because the final redirected URL does not match the originally registered redirect URI. Changing the redirect URL to the exact final destination, such as https://www.google.com, ensures that the authorization code is correctly appended to the URL and received by your application.
 
Is there any specific reason for using https://www.google.pl instead of https://www.google.com
 """

 

After changing the url to google.com insted of google.pl it works.

View solution in original post

5 Replies 5

dbednarc
Cisco Employee
Cisco Employee

Issue solved by Support :

"""

After a quick test, it appears the issue stems from the redirect URL. The URL https://www.google.pl redirects to https://www.google.com, which prevents the authorization code from appearing in the redirected URL. When I changed the redirect URL to https://www.google.com, I was able to successfully receive the code in the URL as shown below:

https://www.google.com/?code=OGY0NzBlY2UtOTUwMi00NTYzLTgwNGEtOGRjNjI1ZTgwMWE3YmQ0MDU5NzEt[REDACTED_PORTION]&state=set_state_here

 
When using a redirect URL like https://www.google.pl that internally redirects to https://www.google.com, the OAuth flow may fail to capture the authorization code properly because the final redirected URL does not match the originally registered redirect URI. Changing the redirect URL to the exact final destination, such as https://www.google.com, ensures that the authorization code is correctly appended to the URL and received by your application.
 
Is there any specific reason for using https://www.google.pl instead of https://www.google.com
 """

 

After changing the url to google.com insted of google.pl it works.

zayanhani
Level 1
Level 1

Could be a token refresh issue have you tried fully disconnecting and reconnecting the Webex integration?

I deleted the integration and created form scratch - same issue.

Janos Benyovszki
Cisco Employee
Cisco Employee

@dbednarc note, that access tokens were never shared in OAuth URLs, what you might be confusing it with is the authorization code that you can exchange for an access token using the APIs. Here is the whole flow for reference https://developer.webex.com/create/docs/authentication
In case you do not get the authorization code like this 

http://your-server.com/auth?code=YjAzYzgyNDYtZTE3YS00OWZkLTg2YTgtNDc3Zjg4YzFiZDlkNTRlN2FhMjMtYzUz as described here https://developer.webex.com/create/docs/authentication#getting-an-access-token , then please open a support case with our team here - https://developer.webex.com/explore/support . 

Thank you ! You are right, wrong wording, authorization code.  I will contact support in that case.