Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Andrii M.
8 years agoHelpful | Level 5
OAuth access token type
Currently during authentication retyrned URL contains token_type=bearer parameter while respective header must be Bearer (else 400 is returned). Is that possible to return correct case in token_type...
- 8 years ago
According to the documentation, we only support the "bearer" token type, so any of these should be fine.
Andrii M.
8 years agoHelpful | Level 5
Thank you, Greg, for response.
Even it this is intensionally and won't be changed in future, I would appreciate advices of the parameter usage:
- Implement own mapping from types returned in the URL to proper header values (need the ful list of supported types described in documentation with stress on the correct capitalizing)
- Use types from URL but capitalize it (now it's my curren implementation)
- Always use Bearer in the auth header and ignore the type from URL
Greg-DB
Dropbox Staff
8 years agoAccording to the documentation, we only support the "bearer" token type, so any of these should be fine.
- lazedo8 years agoNew member | Level 2
Hi Greg,
the api does not accept "bearer", it only accepts "Bearer".
the returned value in token_type is "bearer" and most oauth clients will use that value to compose the Authorization Header.
the result is that the Authorization being sent to subsequent requests has the Authorization header "Authorization: bearer xxxxx" instead of "Authorization: Bearer xxxxx".
it seems to me that, the token_type value returned should be "Bearer" instead of "bearer" if api only accepts that, or change the api to accept "bearer".
thoughts ?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 14 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!