Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

Julie P.22's avatar
Julie P.22
New member | Level 1
10 years ago

URI misatch

Hello,

I code a web service in .net/C# and I use the oauth2.

I succeed to do the authorization :
https://www.dropbox.com/1/oauth2/authorize
with params : client_id, state, response_type and redirect_uri

My redirect_uri is a call to another part of my web service.
Inside, I call the next step :
https://api.dropbox.com/1/oauth2/token
with params : code, grant_type, client_id, client_secretand redirect_uri

It fails. The error message is "redirect_uri mismatch". I've checked multiple times and it is the same in my request and in my dropbox app.

I use two differents uri for the first (authorize) and second (token) request (both saved in my dropbox app), is it the problem?

If I use the same uri, how can I distinct the first and second callback ?

Thanks to your help.

 

2 Replies

Replies have been turned off for this discussion

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 years ago
415 Following

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 or Facebook.

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!