cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

nishanh
New member | Level 2
Go to solution

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    nishanh New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?