cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Ross uses Dropbox to answer some new house questions here!

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: 

invalid_oauth1_token_info

invalid_oauth1_token_info

dascalos
New member | Level 2

A couple questions, I'm updating an app to use the new API.  Logging in as the user into the dropbox website and it doesn't look like there are any apps registered to this account.  My App Key is 1cqi2t0vya3poem.

 

I am able to call https://api.dropboxapi.com/1/oauth/request_token and I get a valid response.  I take that info and plug it into https://api.dropboxapi.com/2/auth/token/from_oauth1 and I get this...

 

curl -X POST https://api.dropboxapi.com/2/auth/token/from_oauth1 -u "1cqi2t0vya3poem:xxxxxx" --header "Content-Type: application/json" --data "{\"oauth1_token\": \"IqL8EWxlEUvscVfa\", \"oauth1_token_secret\": \"xxxxxxxxxxx\"}"

 

 

{"error_summary": "invalid_oauth1_token_info/.","error": {".tag": invalid_oauth1_token_info"}}

 

Any help would be appreciated.

1 Reply 1

Re: invalid_oauth1_token_info

Greg-DB
Dropboxer

If you don't see your app(s) listed on the App Console, that means you're not signed in to the account that owns the app(s). You'll need to log out and then log back in to the account that does own the app(s).

 

The /1/oauth/request_token endpoint gives you an OAuth 1 "request token", but the /2/auth/token/from_oauth1 endpoint only access an OAuth 2 "access token", which is a different kind of token. Attempting /2/auth/token/from_oauth1 with a request token instead will yield this error.

 

In any case, if you're updating your app for API v2. You should just use the OAuth 2 flow instead. The OAuth guide may also be a helpful reference.

 

If (and only if) you do have stored OAuth 1 access tokens (e.g., as returned by /1/oauth/access_token) that you want to migrate to OAuth 2 for use with API v2, you can use those, not request tokens, with /2/auth/token/from_oauth1.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?