cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out 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: 

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

View solution in original post

Re: OAuth parameterized redirect

nishanh
New member | Level 2

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

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
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?