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
contato_augify
8 months agoNew member | Level 2
authentication problem on java api
I'm trying to integrate the Dropbox API into the backend of my application, however, the authentication part is a difficult task to do, because, following the documentation, authentication must be do...
Greg-DB
8 months agoDropbox Staff
It is not possible to completely automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access token and optional refresh token. The authorization step needs to be done manually by the user at least once. If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user manually reauthorizing the app.
You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this post which may serve as a useful example.
The official Dropbox Java SDK can actually handle the process for you automatically, e.g., as shown retrieved in this example, and then used as shown in this example .
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 2 days agoIf 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!