Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
nishanh
7 years agoNew member | Level 2
OAuth parameterized redirect
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?
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
2 Replies
Sort By
- Greg-DB
Dropbox Staff
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- nishanhNew member | Level 2
Thank you. That parameter somehow eluded me when I was reading the docs.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,001 PostsLatest Activity: 12 hours ago
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 or Facebook.
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!