You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
eyra
8 years agoNew member | Level 2
Auth redirect url
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().query...
- 8 years agoThat'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
Greg-DB
Dropbox Staff
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
https://www.dropbox.com/developers/documentation/http/documentation#authorization
david48
7 years agoNew member | Level 2
How would a native mobile client get access to this value?
- Greg-DB7 years agoDropbox Staff
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:
- schrettinger3 years agoExplorer | Level 3
Hello,
when i'm trying to get access token in my android app java with
Auth.startOAuth2Authentication(this, "55556756765765756");
and then i click on ALLOW after DropBox login i get the Error
webpage not available the webpage db-appkey ... could not be loaded.
net::ERRUNKNOWN_URL_SCHEME
Can you please help me to find a solution.
Best regards
Manfred
- tahsini3 years agoDropbox Staff
schrettinger in your startOAuth2Authentication function are you providing the correct app key taken from your App Console? The example you provided with "55556756765765756" does not seem to be a valid app key format.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf 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 or Facebook.
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!