cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OAuth2 redirects to Dropbox.com instead of my redirect URI

OAuth2 redirects to Dropbox.com instead of my redirect URI

Jistix
Explorer | Level 3
Go to solution

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?

Screen Shot 2022-05-14 at 10.24.00 AM.png

1 Accepted Solution

Accepted Solutions

Jistix_
Helpful | Level 6
Go to solution

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

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution

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.

Jistix_
Helpful | Level 6
Go to solution

Greg-DB
Dropbox Staff
Go to solution

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:

Screen Shot 2022-05-14 at 3.05.35 PM.png

 

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_
Helpful | Level 6
Go to solution

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Jistix_ Helpful | Level 6
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?