We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
aishwarya k.
10 years agoExplorer | Level 3
No Redirect URI
I am new to oAuth 2.0. I have read that a redirect URI is neccessary for an implict flow authentication and authorization. However, I have registered my Android app in Dropbox app console and hav...
Greg-DB
Dropbox Community Moderator
10 years agoYou're correct that the OAuth 2 implicit flow requires a redirect URI. When using the API v2 Java SDK in an Android app, the SDK automatically uses a local redirect URI, based on your app key.
You can see how this works in the code:
https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/src/main/java/com/dropbox/core/android/AuthActivity.java#L207
https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/src/main/java/com/dropbox/core/android/AuthActivity.java#L227
aishwarya k.
10 years agoExplorer | Level 3
Hi Greg, Thanks for the reply. I have looked earlier also at the codes you mentioned, but couldn't find any reference to redirect URI there (as a default or anything). What am I missing here? Regards, Aish
- Greg-DB10 years ago
Dropbox Community Moderator
The SDK uses a default URI, so it doesn't need to be explicitly provided. My third link shows where the SDK checks that the app is registered for the default URI though (db-<app_key>).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!