One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
luigia
5 years agoExplorer | Level 4
Token and Permission Updates
Hi,
I receive the mail from dbx about "Token and Permission Updates" to explain me that the Dropbox OAuth flow will no longer return long-lived access tokens. I'm using the lib
<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>3.1.1</version>
I see now there is 3.1.5 version, so I will update it for sure.
In my flow, I call the
/oauth2/authorize
then
/oauth2/token
and
/2/users/get_current_account using the access token returned by the previous call.
So, now this is a long-lived access token, but from sep this will be a short-lived access token, is it right?
What should I do? Should I check the expiration time of this access token, and then ask which api for having the long-lived one?
Or should I recall /oauth2/token every time?
Is there some example I can see ?
thanks a lot
The SDK will do most of the work for you, so I recommend following the SDK examples. You can find the examples of using the authorization flow in the latest version of the Java SDK here. Or if you're building an Android app, there's an example for Android here.
- Greg-DB
Dropbox Staff
The SDK will do most of the work for you, so I recommend following the SDK examples. You can find the examples of using the authorization flow in the latest version of the Java SDK here. Or if you're building an Android app, there's an example for Android here.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,952 PostsLatest Activity: 3 hours ago
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 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!