We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
nishanh
8 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
- Greg-DB8 years ago
Dropbox Community Moderator
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 - nishanh8 years agoNew 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.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!