Forum Discussion

dascalos's avatar
dascalos
Explorer | Level 3
9 years ago

invalid_oauth1_token_info

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

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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.

About Dropbox API Support & Feedback

Node avatar for 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!