Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
LinnSupport
8 years agoNew member | Level 2
API - from_oauth1 parameter 'oauth1_token_secret'
I am currently working on OAuth 2 migration, attempting to use /token/from_oauth1, however a parameter required is 'oauth1_token_secret'.. a property I can find very little on. Is there another call ...
Greg-DB
Dropbox Community Moderator
8 years agoUnlike OAuth 2 access tokens, OAuth 1 access tokens are comprised of two different pieces, a key and a secret. (So, to sign an API call with an OAuth 1 access token, you needed four different pieces: the app key, the app secret, the OAuth 1 access token key, and the OAuth 1 access token secret.) There's an example of the process here:
https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/
Note that all four pieces are distinct. The app key and secret, which only identifies the app, is different than the OAuth 1 access token key and secret, which identify both the app and specific user.
You only need to use /2/auth/token/from_oauth1 is you do have stored OAuth 1 access tokens that you want to migrate to OAuth 2. Note that if your stored access tokens are only one long piece, you likely already have OAuth 2 access tokens. (API v1 supported both OAuth 1 and OAuth 2.)
https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/
Note that all four pieces are distinct. The app key and secret, which only identifies the app, is different than the OAuth 1 access token key and secret, which identify both the app and specific user.
You only need to use /2/auth/token/from_oauth1 is you do have stored OAuth 1 access tokens that you want to migrate to OAuth 2. Note that if your stored access tokens are only one long piece, you likely already have OAuth 2 access tokens. (API v1 supported both OAuth 1 and OAuth 2.)
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!