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

401 Unauthorized Error

ANSWERED

Just starting with the API, can't get past the auth call.

 

"Invalid authorization header. Client secret invalid. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."

 

host:api.fitbit.com
method:POST
path:/oauth2/token
scheme:https
version:HTTP/1.1
authorization:Basic {base64 client_id:client_secret}
content-length:143
content-type:application/x-www-form-urlencoded

 

I've verified base 64 encoding of client ID and secret, and that the ID and secret are correct for my app. Any suggestions to troubleshoot? Thanks!

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Sorry, false alarm. I tripled checked the base 64 encoding of the auth header with a different encoder and got different results which works.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Sorry, false alarm. I tripled checked the base 64 encoding of the auth header with a different encoder and got different results which works.

Best Answer
0 Votes