cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out 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: 

Auth redirect url

Auth redirect url

eyra
New member | Level 2

Why does the redirect url after the Authorization process look like "#access_token=IuAX.........".

The # at the start prevents my server code from getting the url parameters. Using

.request().queryString()

in java

 

1 Accepted Solution

Accepted Solutions

Re: Auth redirect url

Greg-DB
Dropboxer
That's the OAuth 2 "token" flow, where the access token is returned on the redirect URI fragment. That's meant more for client-side apps. For server-side apps, you should use the "code" flow. You can find more information here:

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

View solution in original post

4 Replies 4

Re: Auth redirect url

Rich
Super User II
Moved to the API forum.

Re: Auth redirect url

Greg-DB
Dropboxer
That's the OAuth 2 "token" flow, where the access token is returned on the redirect URI fragment. That's meant more for client-side apps. For server-side apps, you should use the "code" flow. You can find more information here:

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

View solution in original post

Re: Auth redirect url

david48
New member | Level 2

How would a native mobile client get access to this value?

Re: Auth redirect url

Greg-DB
Dropboxer

@david48 Exactly how this works will depend on your particular scenario. For instance, for a locally running native mobile client, it can use a custom local URL scheme in its redirect URI. The app would register for that local URL scheme, so the redirect would be sent directly to the app (i.e., not a remote web server), where the app can parse the token from the fragment of the URL.

 

We recommend using one of the official SDKs, if possible, as they do most of the work for you:

 

https://www.dropbox.com/developers/documentation 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    david48 New member | Level 2
  • User avatar
    Rich Super User II
What do Dropbox user levels mean?
Need more support?