cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Not happy with your Spotify Wrapped? Check out how Kevin on the Dropbox team used Paper to make sure he keeps discovering new music over 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: 
1
Ask
2
Comments

OAuth parameterized redirect

OAuth parameterized redirect

nishanh
New member | Level 2

I need to add a dynamic query parameter to the redirect url. However, this fails with a redirect url mismatch error. The domain and path are the same as the registered redirect, but I can't add any query parameters at runtime without getting a mismatch error. This doesn't seem to be an issue with google drive or MS OneDrive. Is there a way to pass state as a query param in the dropbox redirect url?

1 Accepted Solution

Accepted Solutions

Re: OAuth parameterized redirect

Greg-DB
Dropboxer

As a security feature, OAuth 2 redirect URIs must be pre-registered exactly. Wildcards and dynamic registration are not supported.

Instead, you can use the 'state' parameter to store variable information and receive it back when the user returns to your app:

https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize

View solution in original post

2 Replies 2

Re: OAuth parameterized redirect

Greg-DB
Dropboxer

As a security feature, OAuth 2 redirect URIs must be pre-registered exactly. Wildcards and dynamic registration are not supported.

Instead, you can use the 'state' parameter to store variable information and receive it back when the user returns to your app:

https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize

Re: OAuth parameterized redirect

nishanh
New member | Level 2

Thank you. That parameter somehow eluded me when I was reading the docs.

Who's talking

Top contributors to this post

  • User avatar
    nishanh New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?