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
jjsk
3 years agoHelpful | Level 5
App authorization drops out after inactive period?
Hi
I noticed that some subset of my users' authorizations become invalid after some time and I do not believe that the users explicitly revoke my Application access. Is it possible that the authorization is revoked after the application folder has been idle/without modifications for some time (e.g. after a year or two)? If that is the case, is there any way to prevent this from happening? Note that I'm not talking about short lived access tokens here (which are marked as "token expired" error - these are addressed with refresh tokens and work fine). What I'm seeing is a more permanent failure ("invalid token"). These users have static files in the app folder for read access by the application.
As a workaround I'm sending an email to users once a year or so and ask them to re-authorize the app.. But there is probably a better way to handle that.
- Greg-DBDropbox StaffBy default, Dropbox API authorizations for your app don't become invalid and yield 'invalid_access_token' by themselves, but there a number of different ways that a Dropbox API access token can become invalid, including:
- the user (or team admin) can revoke all access tokens for an app by unlinking it on any of the following Dropbox web pages:
- the Connected apps page
- the Security checkup page
- the Team apps page on the Settings section of Business Admin console (for team-linked apps)
- the team member’s page on the Members section of the Business Admin console
- any client with the access token can revoke the access token by calling /2/auth/token/revoke
- the GitHub-Dropbox token scanning partnership can revoke access tokens found publicly posted on GitHub
- if the app uses the "app folder" access type, the access token can effectively be disabled by deleting the app folder itself in the Dropbox account, via the Dropbox website or any client
- the app can be disabled
- the account that owns the app can be disabled
- the connected account/team can be disabled
- jjskHelpful | Level 5
Thank you for the info. Does the user account itself become inactive after a while? Lets say a user signed up for the app, authorized the folder with some content (in my case they are sound samples) and then logged off and never logged back in... Would user's inactivity at the dropbox site eventually put them in some sort of a dormant or archived state? I can't think of a likely reason for losing access from the ones you listed above.. thanks.
- Greg-DBDropbox Staff
Yes, inactive accounts may be automatically disabled after a long period of time. You can find information on that here.
It sounds like your app uses "app folder" access though, so it may be likely that some users are accidentally deleting the app folder, since that can be done from any connected client or the web site.
In any case, if the Dropbox API doesn't appear to be working as expected, feel free to contact support by opening an API ticket with some samples and we can look into it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 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!