Learn how to make the most out of the Dropbox Community here 💙!

Forum Discussion

fmmmf's avatar
fmmmf
Explorer | Level 3
8 years ago
Solved

DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?

When using the DropboxOAuth2Helper.GetAuthorizeUri - we pass in the following params:   var response  = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Code, ClientId, redirectUrl, state); ...
  • Greg-DB's avatar
    8 years ago

    The Dropbox .NET SDK builds a Uri from the redirectUri string you provide, using the Uri Constructor. The Uri Class canonicalizes URIs, including:

     

    "Removes default and empty port numbers."

     

    The "443" port is default for SSL/TLS, so it's implied by "https://" and shouldn't be necessary.

     

    Can you elaborate on the issues you're running in to with it omitted though?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,974 PostsLatest Activity: 8 hours ago
366 Following

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 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!