Forum Discussion

Andrii M.'s avatar
Andrii M.
Helpful | Level 5
8 years ago
Solved

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 ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.'s avatar
      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:

      1. 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)
      2. Use types from URL but capitalize it (now it's my curren implementation)
      3. Always use Bearer in the auth header and ignore the type from URL

       

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        According to the documentation, we only support the "bearer" token type, so any of these should be fine.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 8 hours ago
350 Following

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!