cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Updated redirect_uri not working

Updated redirect_uri not working

New member | Level 2

Hello, 

When I first created a dropbox app, my redirect_uri was http:confused face:/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:confused face:/localhost:4200/third-party-redirect/ and https:confused face:/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:confused face:/localhost:4200/ then  everything is working fine. How can I  update the redirect_uri ?

 

1 Accepted Solution

Accepted Solutions

Re: Updated redirect_uri not working

New member | Level 2

Hello

Thanks for the help, it's an error on my end. Everything is working fine now, Thanks. 

View solution in original post

4 Replies 4

Re: Updated redirect_uri not working

Dropboxer

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:confused face:/www.dropbox.com/developers/apps

Then, add the desired redirect URI (exactly as it will be used) to the "OAuth 2: Redirect URIs" section.

Re: Updated redirect_uri not working

New member | Level 2

Hello

Thanks for the help, it's an error on my end. Everything is working fine now, Thanks. 

View solution in original post

Re: Updated redirect_uri not working

Collaborator | Level 8

I have the same problem 

What was your solution for this ?

Re: Updated redirect_uri not working

Dropboxer

@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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?