Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

barbicels's avatar
barbicels
Explorer | Level 4
1 month ago

/oauth2/authorize (code flow) redirects to http://www.dropbox.com/home instead of redirect_uri

This OAuth2 problem appeared recently in our app (published a year ago).  It closely resembles another user's forum post from 4 years ago:  OAuth2 redirects to Dropbox.com instead of my redirect URI | The Dropbox Community

We use /oauth2/authorize (code flow) with redirect_uri to a localhost port.  The auth flow still works great in these "routine" cases when Dropbox's authorization webpage appears:

  • User was not previously signed in to Dropbox, so signs in, then clicks Allow or Cancel.
  • User was previously signed in to Dropbox, so clicks Allow or Cancel.

Our problem is that it no longer works in this one case:

  • User was previously signed in to Dropbox, but signs out, then signs in again (as the same or different user) in the same window.  Instead of the Allow/Cancel prompt, the user is redirected to www.dropbox.com/home.  (It's as if the sign-out causes the server to forget that it's still running an auth flow for our client.)

I have put breakpoints in our localhost port listener, and can verify that no error is returned; it's left waiting for an error or auth code.  I mention this because that was the cause of the earlier forum user's problem (a booboo in their listener).

In case you're able to inspect server logs, our app's Dropbox key is enrtqx0um3pxntl.

Thanks!

3 Replies

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    1 month ago

    Hi barbicels​ 

    Could you share a short screencast showing the issue? Please ensure the Network tab of the browser's developer tools first so we can see what requests are occurring.

  • Hi barbicels​ ,

    Thank you for sharing this issue, we've been able to replicate this internally and our engineering team is aware of the issue. We'll follow up here once we have an update.

  • barbicels's avatar
    barbicels
    Explorer | Level 4
    1 month ago

    Thank you!  I look forward to a resolution of this 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!