You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

suzuka's avatar
suzuka
Explorer | Level 4
8 years ago

java api for authentication

Is it possible to authenticate user with username and password using java api? Without UI.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    No, Dropbox API apps should use the OAuth app authorization flow to let the user authorize the app in their browser. This way, apps never handle the user's username and password.

    There's an example of this in the Java SDK here:

    https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/authorize

    Note that once your app has an access token for a user, it doesn't need any further manual user intervention. It can store and re-use that access token for future calls automatically.

    If the device your app runs on doesn't have a browser though, feel free to open a ticket with more details and we'll see if there's any help we can offer:

    https://www.dropbox.com/developers/contact

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 15 minutes ago
333 Following

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!