cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

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)

New member | Level 1
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
Highlighted

Re: 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)

Dropboxer
Dropboxer

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.

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?