One month down in 2025: How are your resolutions coming along? Check out how to get back on track 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 so one could just use it in header? Or it is by-design and developer must always implement own mapping for auth types like bearer->Bearer ?
According to the documentation, we only support the "bearer" token type, so any of these should be fine.
- Greg-DB
Dropbox Staff
Thanks for the post! I can't speak to the intent here, but I'll send this along to the team to see if we can get that changed. I can't make any promises as to if they will do so though.
- Andrii M.Helpful | 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
According to the documentation, we only support the "bearer" token type, so any of these should be fine.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 8 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!