We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Kishore4
8 years agoNew member | Level 2
Dropbox integration with other applications
Hey, We have developed an on-premises application and have integrated dropbox older version. Now since dropbox has upgraded its API we have no other option than to migrate from v1 to v2. But the problem in v2 is that we require dynamic redirect uri options. That is we will have different redirect uri for different users. But v2 compels us to store the redirect uri before hand in the dropbox account which is not possible in our case. Hope you understand our problem and provide us with a better solution.
1 Reply
- 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.
One thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your app, to handle it as necessary:
https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Alternatively, you could forgo using a redirect URI entirely. With the "code" flow, you can omit redirect_uri and have the user copy and paste the code manually.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 7 hours ago
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 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!