Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
badriravi
7 years agoNew member | Level 2
Updated redirect_uri not working
Hello,
When I first created a dropbox app, my redirect_uri was http://localhost:4200/. Everthing was working fine and I continued to develop the application, then I needed to updated the redirect_uri, I changed it to http://localhost:4200/third-party-redirect/ and https://3e0cecfb.ngrok.io/third-party-redirect. After updating, I am not able to authenticate my users anymore. I am getting this error
Invalid redirect_uri. It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).
If I revert back to the old redirect_uri, http://localhost:4200/ then everything is working fine. How can I update the redirect_uri ?
Hello
Thanks for the help, it's an error on my end. Everything is working fine now, Thanks.
6 Replies
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
As a security feature, all redirect URIs used for an app must be pre-registered for the app. If you attempt to use a redirect URI that hasn't been registered, you'll receive this error.
To register an OAuth 2 redirect URI, access the app's page on the App Console by clicking on the app's name there:
https://www.dropbox.com/developers/apps
Then, add the desired redirect URI (exactly as it will be used) to the "OAuth 2: Redirect URIs" section. - badriravi7 years agoNew member | Level 2
Hello
Thanks for the help, it's an error on my end. Everything is working fine now, Thanks.
- evry1falls6 years agoCollaborator | Level 8
I have the same problem
What was your solution for this ?
- Greg-DB6 years ago
Dropbox Community Moderator
evry1falls The error originally mentioned here occurs when your app attempts to use a redirect URI that you haven't pre-registered for it, so double check that you've registered the exact redirect URI that you're using. You can find more information on how to do so in my earlier comment.
- Marc_Gandar4 years agoNew member | Level 2
Hi,
In case of the same error Google let the developer the expected URI. So it is easy to add it in the list. Is there a way to have a similar information with DropBox?
Regards, Marc
- Greg-DB4 years ago
Dropbox Community Moderator
Marc_Gandar I'm not sure I understand your message. Can you clarify?
Do you mean you'd like Dropbox to show the unregistered redirect URI that was attempted to be used in the invalid redirect URI error itself? Dropbox does currently do that on that error page, where the text would look like this:
Error (400)
It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.
More details for developers
Invalid redirect_uri: "https://example.com/": It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).
About Discuss Dropbox Developer & API
Make connections with 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!