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.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

java api for authentication

java api for authentication

suzuka
Explorer | Level 4

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

1 Reply 1

Greg-DB
Dropbox 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
Need more support?
Who's talking

Top contributors to this post

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