Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
SteveCr
8 years agoExplorer | Level 4
Oauth and Curl
Hello all, I'm developing a backup application which should have a degree of autonomy - configure once and run in the background kind of thing. This is all in C++ with libcurl to do the network ...
- 8 years ago
Hey SteveCr,
Have you looked over the information in the Oauth guide here:
https://www.dropbox.com/developers/reference/oauth-guide
You're not required to have a redirect URL, but it will change the Oauth flow for your users (they'll get a code they need to pass to your app). This is typically done for desktop or CLI apps - it sounds like from your post of your application runs locally (primarily?) so take a look at the guide and determine which flow is the best for your use case.Tokens, once acquired, won't expire unless you explicitly revoke them. So after a user completes the flow, and you securely store their token, you would not need to worry about reauthentication. If your intention is to store the tokens in a central location and have your local app query it for the token on startup, your domain would need to be up and active. If you store the token locally, and use the desktop/CLI auth flow then that would not be required.
Hope that helps,
-Chuck
chirstius
Dropbox Staff
8 years agoHey SteveCr,
Have you looked over the information in the Oauth guide here:
https://www.dropbox.com/developers/reference/oauth-guide
You're not required to have a redirect URL, but it will change the Oauth flow for your users (they'll get a code they need to pass to your app). This is typically done for desktop or CLI apps - it sounds like from your post of your application runs locally (primarily?) so take a look at the guide and determine which flow is the best for your use case.
Tokens, once acquired, won't expire unless you explicitly revoke them. So after a user completes the flow, and you securely store their token, you would not need to worry about reauthentication. If your intention is to store the tokens in a central location and have your local app query it for the token on startup, your domain would need to be up and active. If you store the token locally, and use the desktop/CLI auth flow then that would not be required.
Hope that helps,
-Chuck
- SteveCr8 years agoExplorer | Level 4
Hi Chuck,
Dropping the redirect_uri looks like something I can live with for now.
Knowing that the received token is permanent until revoked is a big help, since it's just a one-time setup thing.
Thanks,
Steve
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!