We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

FrustratedUser3's avatar
FrustratedUser3
Collaborator | Level 8
2 years ago

Redirect URI documentation incomplete for code flow

Dropbox OAuth Guide - Dropbox

The process of using the redirect URI is not fully explained. There is no mention of which method will be used to call the URI (POST, GET, etc.) and there is no explanation of which parameters should be expected upon successful completion of the code flow. I was expecting to see an example of the incoming request. I'm currently guessing at how it should work.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi FrustratedUser3,

    If you mean callback query (redirect URI), after confirmation by user, ( it's NOT a call!!! ) GET method is in use. For code flow, there is mandatory 'code' parameter and optional 'state' parameter (appears when/if set in auth URL). Further you need to finish the flow with call to /oauth2/token where you get the flow' results (access token, optional refresh token, different IDs, etc.). 😉 That's it.

    Hope this helps.

    • FrustratedUser3's avatar
      FrustratedUser3
      Collaborator | Level 8

      I was pointing out that the documentation is incomplete. The state variable is mentioned, the code variable is implied, and the http VERB is not referenced. This needs to be added to the documentation:

       

      After the user presses allow during the code flow process, the browser sends a request to the redirect URI using the GET verb with the following query parameters:
      * code: A code that ...
      * state: An optional variable ...

       

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 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!