Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Charles H.7's avatar
Charles H.7
New member | Level 1
10 years ago

Android: authenticate using Dropbox app without using SDK?

I am writing an android app that connects with Dropbox using the REST api. It does not use any SDK. Currently my users give my app permission to access their Dropbox account using a web browser, which works. However, most of them would prefer not to enter their username and password into the browser, something they do not need to do when using the SDK and the local Dropbox app. My question: is there a way for me to launch the Dropbox app using an intent with some set of extras so that the user can give permission there, then get the results (the token) back?

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    We don't currently have any documentation for the app authorization flow built in to the official Dropbox mobile apps, but I'll be sure to pass this along as a request for that.

    That flow is handled for you in the SDKs, but if you're not using one of the SDKs, we do recommend using the standard OAuth flow in the browser as you mentioned.

    The Core SDK is open source though, so you could look at it and replicate what the SDK does, though it'd be safer to just use the standard OAuth flow, since the SDK flow isn't documented.

  • Charles H.7's avatar
    Charles H.7
    New member | Level 1
    10 years ago

    Thanks for your answer. I did look at the SDK source before asking and decided that there was too much "magic" in it for me to depend upon me correctly reverse engineering the flow.

    I have switched to using a webview instead of launching browser. This cleans up some of the user interaction, especially handing the redirect URL. I will stay with it for exactly the reason you gave: it is documented and stable.

About Dropbox API Support & Feedback

Node avatar for 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!