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

Exchange the authorization code for a re-useable access token - OAuth 2.0 - /oauth2/authorize

New member | Level 2
New member | Level 2

When using OAuth 2.0 during  /oauth2/authorize while ommiting the redirect url:

 

https://api.dropbox.com/oauth2/authorize?response_type=code&client_id=<key>scope=&state=<state>

 This is the [code flow]

the user then is directed to authorize the app, once the app is authorized the user is taken to a page that reads:

 

Enter this code into <app-name> to finish the process.

GooKWtwe54AAAAAAABABSUl_Ruv1COvpBBCuWQ5kv2g  (code changed)

 

it takes the user here: https://www.dropbox.com/1/oauth2/authorize_submit

 

1) please help me understand how I need to exchange this code for an access token.


 

2 Replies 2
Highlighted

Re: Exchange the authorization code for a re-useable access token - OAuth 2.0 - /oauth2/authorize

Dropboxer
Dropboxer

[Cross-linking for reference: https://stackoverflow.com/questions/40595734/exchanging-a-dropbox-authorization-code-for-a-re-useabl... ]

 

I just posted an answer on StackOverflow, but in short, you can use /oauth2/token to exchange an authorization code for an access token:

 

https://www.dropbox.com/developers/documentation/http/documentation#authorization

Highlighted

Re: Exchange the authorization code for a re-useable access token - OAuth 2.0 - /oauth2/authorize

New member | Level 2
New member | Level 2

Greg, you are a genius. Sometimes the issue is so small it is easily overlooked!

FYI, the problem was in:

- https://www.dropbox.com/oauth2/token
+ https://api.dropbox.com/oauth2/token

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?