cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

URL with # sign

URL with # sign

L. Robin
New member | Level 1

I am writing code with Dorpbox API, It seems working ok as I am calling oauth 2 and return with access_token etc.. looks ok with one issue, in querystring it return with # rather then ? like https://www.sitename.com/dboxcallback.asp?access_token=xxxxxx&token_type=xxxr&uid=xxxx
is this normal? I am expect it would be ? rather then #. or there are something I am doing wrong?

2 Replies 2

L. Robin
New member | Level 1

Steve M.
Dropbox Staff

See https://www.dropbox.com/developers/core/docs#oa2-authorize. If you're using the token flow, which is intended for client-side apps (including JavaScript in the browser), then the access token and other parameters are included in the URL fragment (the portion of the URL after the # sign).

If you use the code flow (more appropriate for server-side code), then the authorization code will be in a query parameter, and you'll then make a call to /oauth2/token to exchange the authorization code for an access token.

All of this is part of the OAuth 2 standard, not specific to Dropbox, so consider reading up on OAuth 2 itself.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Steve M. Dropbox Staff
  • User avatar
    L. Robin New member | Level 1
What do Dropbox user levels mean?