cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

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

OAuth2 Redirect Url

OAuth2 Redirect Url

IQCloud
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

Greg-DB
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?