11-16-2015 01:16
11-16-2015 01:16
Hi,
I am trying with OAuth 2.0 for both Authorization Code Grant Flow and Implicit Grant Flow.
I provided all the details and tried hitting authorization URL. For the first time it asked me for user details and gave me a response i.e. code or access token. Then i again tried hitting authorization URL for another user, but the login page didnt show up. I had to delete my browser cookies and hit the authorization URL for it to work.
Is this the way the authorization URL works ? Am i suppose to delete the cookies everytime before i hit authorize URL for new user ?
Thanks in advance.
11-16-2015 11:20
11-16-2015 11:20
@vrushankd wrote:
Hi,
I am trying with OAuth 2.0 for both Authorization Code Grant Flow and Implicit Grant Flow.
I provided all the details and tried hitting authorization URL. For the first time it asked me for user details and gave me a response i.e. code or access token. Then i again tried hitting authorization URL for another user, but the login page didnt show up. I had to delete my browser cookies and hit the authorization URL for it to work.
Is this the way the authorization URL works ? Am i suppose to delete the cookies everytime before i hit authorize URL for new user ?
Thanks in advance.
The reason you are seeing this behavior is that once the original user logins to Fitbit.com to give consent to your application, they stay logged in on fitbit.com. The next time you prompt for the exact same permissions from the same logged in user, we automatically redirect them back to your app since they've previously granted permission and no additional consent is required.
You can use the "prompt" parameter on the authorization URL to force the user to login. Please see: