Posted by kdpp
Henagon

Authorization code

Hello,

When I call the URL https://login.teamviewer.com/oauth2/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=ht... in order to get the autorisation code, I am redirected to the URL https://login.teamviewer.com/LogOn/PopUp?returnUrl=%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26cl... whithout the code parameter in the URI as mentionned in the web document TeamViewer_API_Documentation.pdf (3.8.1 GET login.teamviewer.com/oauth2/authorize).

Am I missing samething ? Is it the right way to generate the Autorization code ?

Sincerly,

1 Reply
1 Reply
Posted by DomLan
Heptagon

Re: Authorization code

Hi @kdpp,

yes! The flow is correct. It is a standard ping-pong of an exchange via OAuth2. As specified in the manual: "The client is redirected to the redirection endpoint, which is specified when creating an application in Management Console, after the interaction with the authorization endpoint is completed. Values added to the redirect_uri:...". -> So you must authenticate.

After correct authentication, you will be redirect to your "https://client.example./cb", with your state parameter, plus code that can be used to get an access token.

Regards

 

Domenico Langone
MCSD: App Builder