cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

API Redirect URI allow multiple ports on localhost

API Redirect URI allow multiple ports on localhost

TheSecurity
New member | Level 2
Go to solution

Hello,

 

I am developing an application that uses the Dropbox API. I would like the application to choose a port that is currently open on the device and based on that create User Authorization link for user to authorize this application.

 

I have not found the way whether/how it can be achieved because Redirect URIs seem like only accept the full URI - exact match.

 

Thank you for your help

1 Accepted Solution

Accepted Solutions

Здравко
Legendary | Level 20
Go to solution

Hi @TheSecurity,

You can register multiple URIs (actually only port can differs) and use whatever appropriate in every particular case. Usually trying 3 different sequential ports above 1000 is enough. It's pretty unlikely all be engaged at the same time. If such almost impossible situation happens (by any chance), just inform your user. Certainly the next try will be successful. 😉

Hope this helps.

View solution in original post

4 Replies 4

Здравко
Legendary | Level 20
Go to solution

Hi @TheSecurity,

You can register multiple URIs (actually only port can differs) and use whatever appropriate in every particular case. Usually trying 3 different sequential ports above 1000 is enough. It's pretty unlikely all be engaged at the same time. If such almost impossible situation happens (by any chance), just inform your user. Certainly the next try will be successful. 😉

Hope this helps.

Greg-DB
Dropbox Staff
Go to solution

@TheSecurity That's correct, Dropbox requires OAuth 2 redirect URIs to be registered exactly, including the port, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

 

As Здравко noted though, you can instead register multiple redirect URIs to support multiple ports.

TheSecurity
New member | Level 2
Go to solution

Hi there,

Thanks for your advice. At first I was a bit sceptical about this idea. But after some research I agree that the likelihood of all 3 ports being used is quite low.

TheSecurity
New member | Level 2
Go to solution

Hi there,

Thanks for the clarification. I would appreciate it if you could pass this on as a feature request.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    TheSecurity New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?