Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Cloak F.'s avatar
Cloak F.
New member | Level 1
9 years ago

How to get #access_token= ?!?!

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!