<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246631#M14056</link>
    <description>I should specify that the error we were getting was: &lt;BR /&gt;An unhandled exception has occurred: invalid_grant (1fff7674)&lt;BR /&gt;Dropbox.Api.OAuth2Exception: invalid_grant</description>
    <pubDate>Thu, 12 Oct 2017 16:49:56 GMT</pubDate>
    <dc:creator>fmmmf</dc:creator>
    <dc:date>2017-10-12T16:49:56Z</dc:date>
    <item>
      <title>DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246296#M14025</link>
      <description>&lt;P&gt;When using the DropboxOAuth2Helper.GetAuthorizeUri - we pass in the following params:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var response&amp;nbsp; = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Code, ClientId, redirectUrl, state);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where the redirectUrl is a link similar to the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://my-site.domain.com:443/rest-of/the/url/auth-complete&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However the response that comes from it doesn't include the '443' and that seems to be causing issues when trying to authenticate.&lt;/P&gt;
&lt;P&gt;Ie. response is as follows (example):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=y7c53f1wctrfmw8&amp;amp;redirect_uri=https:%2F%2Fmy-site.domain.com%2Frest-of%2Fthe%2Furl%2Fauth-complete&amp;amp;state=MxuufKLcqtGRLQLDNgaYnsvowunHhvfnpoKZKEIvamanPmwvIMTMoqhDBpjH
WBsddOiTEeDvfoEPgfEzolugXskJnzcOpQyoMtmRkkhqbCqmsaIizwQpBzvSeEsJbjMPXfZapCnvUIKfgToizDMnbxRPhzPXnYpUUOjFYhphBDHduROpUusecDHIRJSnYipvtrlQITt&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know what could be causing this? Is this an inherent part of how this function should work?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:13:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246296#M14025</guid>
      <dc:creator>fmmmf</dc:creator>
      <dc:date>2020-05-29T17:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246473#M14039</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox .NET SDK builds a Uri from the redirectUri string you provide, using &lt;A href="https://msdn.microsoft.com/en-us/library/z6c2z492(v=vs.110).aspx" target="_self"&gt;the&amp;nbsp;Uri Constructor&lt;/A&gt;. The &lt;A href="https://msdn.microsoft.com/en-us/library/system.uri(v=vs.110).aspx" target="_self"&gt;Uri Class&lt;/A&gt;&amp;nbsp;canonicalizes URIs, including:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Removes default and empty port numbers."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "443" port is&amp;nbsp;default for SSL/TLS, so it's implied by "https://" and shouldn't be necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you elaborate on the issues you're running in to with it omitted though?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:33:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246473#M14039</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-11T18:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246630#M14055</link>
      <description>&lt;P&gt;Hi Greg, thanks for the reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the GetAuthorizeUri method seemed to be removing the 443 it was a mismatch between the redirect url sent in there and the one we were sending into the ProcessCodeFlowAsync method - although to us, the url we were sending into both of them was the same. Once we also removed the 443 from the PCFA method, we were able to authenticate with dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The removal of the default port was not inherently obvious in these docs when we went looking for what was happening: &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxOAuth2Helper_GetAuthorizeUri.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxOAuth2Helper_GetAuthorizeUri.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:47:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246630#M14055</guid>
      <dc:creator>fmmmf</dc:creator>
      <dc:date>2017-10-12T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246631#M14056</link>
      <description>I should specify that the error we were getting was: &lt;BR /&gt;An unhandled exception has occurred: invalid_grant (1fff7674)&lt;BR /&gt;Dropbox.Api.OAuth2Exception: invalid_grant</description>
      <pubDate>Thu, 12 Oct 2017 16:49:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246631#M14056</guid>
      <dc:creator>fmmmf</dc:creator>
      <dc:date>2017-10-12T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246633#M14057</link>
      <description>I see, thanks for the information. In that case, you should register the redirect URI without the port. I'll ask the team to clarify this in the documentation.</description>
      <pubDate>Thu, 12 Oct 2017 17:05:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246633#M14057</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-12T17:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxOAuth2Helper GetAuthorizeUri removing port from redirecturl?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246828#M14093</link>
      <description>Yes we have, thank you!</description>
      <pubDate>Fri, 13 Oct 2017 17:47:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxOAuth2Helper-GetAuthorizeUri-removing-port-from/m-p/246828#M14093</guid>
      <dc:creator>fmmmf</dc:creator>
      <dc:date>2017-10-13T17:47:47Z</dc:date>
    </item>
  </channel>
</rss>

