<?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: How do I set the Redirect URI port number? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243944#M13643</link>
    <description>&lt;P&gt;Additional questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let's try randomly selecting the port number from "50000 ~ 51000".&lt;/P&gt;
&lt;P&gt;AppConsole settings should add 1000 or more as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:50000" target="_blank"&gt;http://127.0.0.1:50000&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50001" target="_blank"&gt;http://127.0.0.1:50001&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50002" target="_blank"&gt;http://127.0.0.1:50002&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50003" target="_blank"&gt;http://127.0.0.1:50003&lt;/A&gt;&lt;BR /&gt;... more ... more ...&lt;BR /&gt;&lt;A href="http://127.0.0.1:50998" target="_blank"&gt;http://127.0.0.1:50998&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50999" target="_blank"&gt;http://127.0.0.1:50999&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:51000" target="_blank"&gt;http://127.0.0.1:51000&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a limit to the number of Redirect URIs that can be set in AppConsole?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 01:35:26 GMT</pubDate>
    <dc:creator>Jaihoon_Ahn</dc:creator>
    <dc:date>2017-09-28T01:35:26Z</dc:date>
    <item>
      <title>How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243556#M13589</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dropbox You have configured a Redirect URI for OAuth2 authentication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- &lt;A href="http://127.0.0.1" target="_blank"&gt;http://127.0.0.1&lt;/A&gt;&lt;BR /&gt;- &lt;A href="http://127.0.0.1:port" target="_blank"&gt;http://127.0.0.1:port&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have coded the following code in C #.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;string redirectURI = "&lt;A href="http://127.0.0.1:56207" target="_blank"&gt;http://127.0.0.1:56207&lt;/A&gt;";&lt;BR /&gt;string requestURI = "&lt;A href="https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;redirect_uri=http://127.0.0.1:56207&amp;amp;client_id=4tb5otn53umkiro&amp;amp;state=W1LlGGzWZXqpv68QU-d3wrGbOFviArFeVyvdXQBX7u4" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;redirect_uri=http://127.0.0.1:56207&amp;amp;client_id=4tb5otn53umkiro&amp;amp;state=W1LlGGzWZXqpv68QU-d3wrGbOFviArFeVyvdXQBX7u4&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HttpListener httpListener = new HttpListener();&lt;BR /&gt;httpListener.Prefixes.Add("&lt;A href="http://127.0.0.1:56207/" target="_blank"&gt;http://127.0.0.1:56207/&lt;/A&gt;");&lt;BR /&gt;httpListener.Start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Diagnostics.Process.Start(requestURI);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is Error (400).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="err400.png" style="width: 387px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/1276iE368355466B6D212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="err400.png" alt="err400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is wrong with it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243556#M13589</guid>
      <dc:creator>Jaihoon_Ahn</dc:creator>
      <dc:date>2019-05-29T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243626#M13610</link>
      <description>&lt;P&gt;You can use an OAuth 2 redirect URI including a port number, but it will still need to exactly match one of the OAuth 2 redirect URIs that you previously registered, including the port and path. If they don't match exactly, you'll get the error above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, first register the exact OAuth 2 redirect URI on the &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;App Console&lt;/A&gt; (using the port number, not the string "port") and then use that exact string in the redirect_uri URL parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, you're passing "&lt;A href="http://127.0.0.1:56207" target="_blank"&gt;http://127.0.0.1:56207&lt;/A&gt;" as the redirect_uri value, so you'll need to register&amp;nbsp;&lt;SPAN&gt;"&lt;A href="http://127.0.0.1:56207" target="_blank"&gt;http://127.0.0.1:56207&lt;/A&gt;" exactly on the &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;App Console&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tried this and it is working properly for me. If it's not working for you, please share a screenshot of the OAuth 2 redirect URIs registered for your app on the &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;App Console&lt;/A&gt; as well as a screenshot of the error page you're getting, including the full URL.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:24:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243626#M13610</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-26T18:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243711#M13622</link>
      <description>&lt;P&gt;Answer Well received.&lt;BR /&gt;When the fixed port number is used according to the reply contents, it works correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fixing the port number is probably a problem.&lt;BR /&gt;You specified port 56207 in the app console as '&lt;A href="http://127.0.0.1:56207" target="_blank"&gt;http://127.0.0.1:56207&lt;/A&gt;'.&lt;BR /&gt;OAuth2 authentication is expected to fail if the 56207 port is blocked on the PC or another application is preempting it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, when redirecting to Localhost, I want to specify port number which is not used in PC.&lt;BR /&gt;I know that 'Google' is not limited to Localhost.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 05:40:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243711#M13622</guid>
      <dc:creator>Jaihoon_Ahn</dc:creator>
      <dc:date>2017-09-27T05:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243844#M13630</link>
      <description>You can choose whatever redirect URI/port you want, but whatever you do choose, you need to pre-register it on the App Console.</description>
      <pubDate>Wed, 27 Sep 2017 17:53:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243844#M13630</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-27T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243944#M13643</link>
      <description>&lt;P&gt;Additional questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let's try randomly selecting the port number from "50000 ~ 51000".&lt;/P&gt;
&lt;P&gt;AppConsole settings should add 1000 or more as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:50000" target="_blank"&gt;http://127.0.0.1:50000&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50001" target="_blank"&gt;http://127.0.0.1:50001&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50002" target="_blank"&gt;http://127.0.0.1:50002&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50003" target="_blank"&gt;http://127.0.0.1:50003&lt;/A&gt;&lt;BR /&gt;... more ... more ...&lt;BR /&gt;&lt;A href="http://127.0.0.1:50998" target="_blank"&gt;http://127.0.0.1:50998&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:50999" target="_blank"&gt;http://127.0.0.1:50999&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:51000" target="_blank"&gt;http://127.0.0.1:51000&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a limit to the number of Redirect URIs that can be set in AppConsole?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:35:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243944#M13643</guid>
      <dc:creator>Jaihoon_Ahn</dc:creator>
      <dc:date>2017-09-28T01:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243947#M13644</link>
      <description>There isn't a limit on the number of redirect URIs you can add, but I can't promise that won't change in the future.</description>
      <pubDate>Thu, 28 Sep 2017 01:41:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/243947#M13644</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-28T01:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the Redirect URI port number?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/259836#M15121</link>
      <description>&lt;P&gt;yes, fixed port number is really a headache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you are right about Google. For some reason Dropbox limits their redirect URIs when Google allows to define that URI dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of letting my web server find out which port is available I have to loop over &lt;STRONG&gt;fixed number of ports&lt;/STRONG&gt; and try to run that server&amp;nbsp;using first avaialble port. It is really uncomfortable.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:29:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-Redirect-URI-port-number/m-p/259836#M15121</guid>
      <dc:creator>rshvets</dc:creator>
      <dc:date>2018-01-10T20:29:22Z</dc:date>
    </item>
  </channel>
</rss>

