We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Paul_Portnexus
7 years agoHelpful | Level 5
How to link Dropbox Account to My App
I have finished devlopment of my app. Now, I would like to link other dropbox accounts to my app. How can I do that? Does the dropbox user search for and link my app; or must I setup a dropbox user to use the app; or something else?
OK. I think I have this figured out.
For My App, we are uploading videos from a comapny's employees. We want to authorize just one dropbox account - the account of the company. So, on our web portal we have an "Authorize" button which re-directs the user to the dropbox authoriz page (https://www.dropbox.com/oauth2/authorize). Once the user authorizes the company account is linked to my app. The redirect URL for our app will receive the access token. I save the access toekn in our server database and can re-use the toekn since it never expires.
Do I have the flow correct?
3 Replies
- Greg-DB7 years ago
Dropbox Community Moderator
To allow other users to connect their Dropbox accounts to your app, you should implement the OAuth app authorization flow in your app. The process would start from inside your app itself, e.g., in response to some user input indicating that they want to connect to Dropbox, such as them clicking a button in your UI.
You can find documentation on the OAuth flow here:
https://www.dropbox.com/developers/documentation/http/documentation#authorization
There's also an OAuth Guide that may be helpful here:
- Paul_Portnexus7 years agoHelpful | Level 5
OK. I think I have this figured out.
For My App, we are uploading videos from a comapny's employees. We want to authorize just one dropbox account - the account of the company. So, on our web portal we have an "Authorize" button which re-directs the user to the dropbox authoriz page (https://www.dropbox.com/oauth2/authorize). Once the user authorizes the company account is linked to my app. The redirect URL for our app will receive the access token. I save the access toekn in our server database and can re-use the toekn since it never expires.
Do I have the flow correct?
- Greg-DB7 years ago
Dropbox Community Moderator
Yes, that's correct. Let us know if you run in to any issues.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!