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: 

How to get #access_token= ?!?!

Cloak F. New member | Level 1
New member | Level 1

Hi,

We're trying to integrate Dropbox within our service.

Right now, we're hung op on how to access the GET access_token after a user authenticated. Dropbox places a # before the GET variables so we can't access it the normal way and REQUEST_URI won't work either.
How can we get that access_token?!

Thank you in advance.

- Ralph

2 Replies 2

Re: How to get #access_token= ?!?!

Cloak F. New member | Level 1
New member | Level 1

Never mind, I used the code flow instead.

Re: How to get #access_token= ?!?!

Dropboxer
Dropboxer

Hi Ralph, when using the "token" flow, the access token is placed in the "fragment" of the redirect URI (the portion after the "#"), per the OAuth specification. 

Browsers don't send that portion up to the server though, so if you are building a web app, using the "code" flow instead is the right way to go.

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?