Hello,
When I call the URL https://login.teamviewer.com/oauth2/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=https%3A%2F%2Fclient%2Eexample%2E%2Fcb&display=popup 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%26client_id%3DCLIENT_ID%26redirect_uri%3Dhttps%253a%252f%252fclient.example.%252fcb%26display%3Dpopup 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,
Hi @DomLan
Your workaround is great!
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