We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
martinkleinaustria
5 years agoExplorer | Level 4
OAuth Updates for an App for just One Single User (Developer is only user) required ?
I received a mail from Dropbox announcing the Oauth updates by Sept 2021.
I have a very simple Single Page Java Script application - which runs in the browser not in node - and I use the Dropbox-sd...
martinkleinaustria
5 years agoExplorer | Level 4
I tried now your first suggestion:
- if this is only for your own use, you can still manually input your own access token and now optionally refresh token without processing the OAuth flow each time
So in the Dropbox App Console I requested a Short Term Access Token (Short Term because the never ending one will disappear in the future). I inserted this manually in your sample code and of course that worked - but only for around 10 hours. Then I received a 401 error on the file list call.
So this means that I would have to do this manual request of a new access token basically every new day I use the app. Not really a solution !
But during the next days I will try your second suggestion and come back to you.
With kind regards
Martin Klein
Greg-DB
Dropbox Community Moderator
5 years agoShort-lived access tokens only last for a few hours, so if you need long-term access, you'd also need to plug in a refresh token. The refresh token can be used to get new short-lived access tokens on demand, without further manual interaction. The App Console doesn't offer the ability to get refresh tokens though, so you'd need to process the OAuth flow (which you can do manually just once if that's all you need) to get the refresh token.
- martinkleinaustria5 years agoExplorer | Level 4
Ok. Can you please point me to or provide me an example for a MANUAL OAuth flow that would provide me a refresh Token.
Many thanks and kind regards
Martin Klein
- Greg-DB5 years ago
Dropbox Community Moderator
You can find examples in the authorization documentation, such as how the authorization URL should be formed for /oauth2/authorize, as well as how calls to /oauth2/token would be made using curl.
About Discuss Dropbox Developer & API
Make connections with 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!