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

Not asking for login details while calling authorization URL

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.

Best Answer
0 Votes
1 REPLY 1

@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:

https://dev.fitbit.com/docs/oauth2/#authorization-page

Best Answer