We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
thanasis k.
10 years agoNew member | Level 1
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)
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
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
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.
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!