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: 

authorization from a java desktop application without the need to declare any redirect url (without the need for a server-side code to handle the access token)

authorization from a java desktop application without the need to declare any redirect url (without the need for a server-side code to handle the access token)

thanasis k.
New member | Level 1

i have develop a JAVA desktop application and right now iam using a server-side code in apache-tomcat to make the authorization and get the access token, and everything is fine.  But my partner inform me, that we should not use any web server software, so is there a way to get the access token in my desktop application without the need for a server-side code in a web server that runs locally????

please give a hand of help, ASAP...

1 Reply 1

Greg-DB
Dropbox Staff

For client-side apps like this, you should generally use the OAuth 2 "token" flow. You can find more information in the documentation for /oauth2/authorize:

https://www.dropbox.com/developers/documentation/http/documentation

For the redirect URI, you can either use a local address that your app will listen on, or if you're using an in-app browser, you can use https://www.dropbox.com/1/oauth2/redirect_reciever, where you can pull the access token off of the URL fragment.

Need more support?
Who's talking

Top contributors to this post

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