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

unauthorized_client error when clicking on the OAuth 2.0 tutorial page link

I enter in all the correct info on the OAuth 2.0 tutorial page(https://dev.fitbit.com/apps/oauthinteractivetutorial) and it dynamically creates the link that contains all of the query parameters needed for authorization and instructs you to click on the link. When I click on the link this is the response I get:

 

"Developer information: unauthorized_client - The client is not authorized to request an access token using this method."

 

It didn't even prompt me to log on. I think this may be because I attempted to authorize from the dev version of my mobile app and got the same response and now it is somehow cached? Could it be anything else?

Best Answer
0 Votes
4 REPLIES 4

Have you used the Authorization Code Flow?

I had this problem, by swapping from Implicit Grant Flow to Authorization Code Flow it let me in.

Best Answer
0 Votes

I was hoping to use the implicit flow, I imagine that it should at least function for Fitbit to offer that option?

Best Answer
0 Votes

AUthorization Code Grant Flow and Implicit Grant Flow are both supported. https://dev.fitbit.com/docs/oauth2/

 

You'll need to make sure your "OAuth 2.0 Application Type" setting on https://dev.fitbit.com/apps is set to "Client" in order to use the Implicit Grant Flow.

Best Answer
0 Votes

That did it! It was previous set to server, however, now I am getting an invalid request error because my callback URI is not valid. I plan on registering a custom URL on the mobile app that points to my app(myapp://fitadventures), will this not work in the browser on my laptop for testing?

Best Answer
0 Votes