Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Authorization Code Grant flow and redirect user_id parameter

ANSWERED

The API documentation seems to show that the user_id parameter is only returned as part of the Implicit Grant flow and not the Authorization Code Grant flow. If you have a server based app using the Authorization Code Grant flow and the Subscriptions API, how are you supposed to obtain the user_id to retrieve the data associated with the subscription notification?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Both Authorization Code flow and implicit flow return user id first time when you receive access token.

Where in documentation did you see that user_id is not returned as part of code flow?

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Both Authorization Code flow and implicit flow return user id first time when you receive access token.

Where in documentation did you see that user_id is not returned as part of code flow?

Best Answer
0 Votes

First, thanks for the quick response. The documentation doesn't explicitly state that user_id isn't returned in the Authorization Code Grant flow, but rather it explicitly states that it is returned in the Implicit Grant Redirect URI Parameters section under Redirect URIs. It simply isn't clear that the user_id is passed back in the Authorization Code flow, and I wanted to be sure when designing our flows.

Best Answer
0 Votes