Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

FrustratedUser3's avatar
FrustratedUser3
Collaborator | Level 8
3 years ago
Solved

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.

3 Replies

Replies have been turned off for this discussion
  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    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
    3 years ago

    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.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!