cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

API - from_oauth1 parameter 'oauth1_token_secret'

New member | Level 2
New member | Level 2

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

1 Reply 1
Highlighted

Re: API - from_oauth1 parameter 'oauth1_token_secret'

Dropboxer
Dropboxer
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.)
Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?