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

Forum Discussion

Jistix's avatar
Jistix
Explorer | Level 3
4 years ago
Solved

OAuth2 redirects to Dropbox.com instead of my redirect URI

When my users go through the OAuth authorization flow, then click the Allow button at https://www.dropbox.com/oauth2/authorize, Dropbox redirects the user to Dropbox.com, when it should redirect the user to my redirect URI. How do we fix this?

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Thanks for the report. This issue doesn't seem to reproduce for me though. Can you perhaps share a short screencast showing the issue? It may help to open the Network tab of the browser's developer tools first so we can see what requests are occurring.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Thanks, that's helpful. It looks like your jistix-staging.com/oauth2/dropbox page is itself redirecting back to www.dropbox.com for some reason.

     

    It goes by fast in the log in your video, but here's the relevant portion:

     

    The authorize_submit page is the "Allow" action on the Dropbox app authorization page, which returns a 302 redirect to your redirect URL, giving it the authorization code. Your /dropbox?code=... then itself also returns a 302 redirect back to www.dropbox.com for some reason though. You'll need to debug the code for that route on your web app to see why it's doing that.

  • Jistix_'s avatar
    Jistix_
    Helpful | Level 6
    4 years ago

    Greg-DB Thank you. We resolved the issue. Much appreciated.

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!