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: 

OAuth2 Redirect Url

OAuth2 Redirect Url

Explorer | Level 3

Hello there,

 

For the Oauth2 bewlow

https://api.dropbox.com/1/oauth2/authorize?response_type=code&client_id=zzzzzzzzzzz&redirect_uri=htt...

 

It is saying ClientId is invalid. 

The app has the same redirect url: https://localhost:44332/Login?Cloud=DROP&ClientId=393903

 

Could you please advise wether it is possible to add extra parameters and only the first one is accepted (Cloud) so far.

 

Error is:

More details for developers

unknown field "ClientId"

 

Please let me know!

 

Thanks

1 Reply 1

Re: OAuth2 Redirect Url

Dropboxer

It sounds like you're not URL encoding the 'redirect_uri' value, and so the URL parameters on your redirect URI are being sent as actual URL parameters to the Dropbox /oauth2/authorize app authorization page itself, which does not expect those parameters.

 

You'll need to URL encode your 'redirect_uri' value. For example, for the sample you included here, that would be:

 

https%3A%2F%2Flocalhost%3A44332%2FLogin%3FCloud%3DDROP%26ClientId%3D393903

 

Also, note that per the documentation, the app authorization page should be accessed at https://www.dropbox.com/oauth2/authorize (not on api.dropbox.com).

Polls
Are you starting new work habits this year?

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?