One month down in 2025: How are your resolutions coming along? Check out how to get back on track 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 I should be using to return the app token as well as the secret?
https://www.dropbox.com/developers/documentation/http/documentation#auth-token-from_oauth1
- Greg-DB
Dropbox Staff
Unlike 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.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 13 hours ago
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 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!