<?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: Using IdentityModel.OidcClient with Dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596895#M27737</link>
    <description>&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;My registered redirect URI at google is &lt;A href="https://127.0.0.1" target="_blank"&gt;https://127.0.0.1&lt;/A&gt;. If I now send an authentication request with the redirect URI set to &lt;A href="https://127.0.0.1:51931" target="_blank"&gt;https://127.0.0.1:51931&lt;/A&gt;. Google accepts this redirect URI, because the port doesn't change the destination.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dropbox on the other hand seems to be very strict when it comes to the redirect URIs. The redirect URI from the authentication request has to match exactly the registered redirect URI (port included).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would prefer to use random ports to avoid problems on machines where ports might be not available do to e.g. firewall settings. This way it's possible to switch from a blocked port to a free port without having to register another redirect URI.&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 13:31:55 GMT</pubDate>
    <dc:creator>CloudServices</dc:creator>
    <dc:date>2022-05-13T13:31:55Z</dc:date>
    <item>
      <title>Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596830#M27730</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the &lt;A href="https://github.com/IdentityModel/IdentityModel.OidcClient" target="_self"&gt;IdentityModel.OidcClient&lt;/A&gt; to authenticate the dropbox account of a user within my&amp;nbsp;application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The authentication works as expected with one exception: The redirect_uri. I'm using random ports within the redirect_uri to avoid connection problems e.g. &lt;A href="https://127.0.0.1:{randomPort}" target="_blank" rel="noopener"&gt;https://127.0.0.1:{randomPort}&lt;/A&gt;. If I do so, I receive the following exception:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Invalid redirect_uri: "&lt;A href="https://127.0.0.1:51931" target="_blank" rel="noopener"&gt;https://127.0.0.1:51931&lt;/A&gt;": It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to use random ports with the &lt;SPAN&gt;redirect_uri or&lt;/SPAN&gt; do I have to use static ports? Is there a limitation to the amount of redirect URIs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW: Google, Microsoft and Box.com support random ports for 127.0.0.1 as redirect_uri.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 10:38:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596830#M27730</guid>
      <dc:creator>CloudServices</dc:creator>
      <dc:date>2022-05-16T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596858#M27732</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/669571"&gt;@CloudServices&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Invalid redirect_uri: "&lt;A href="https://127.0.0.1:51931" target="_blank" rel="noopener"&gt;https://127.0.0.1:51931&lt;/A&gt;": It &lt;STRONG&gt;must exactly match one of the redirect URIs you've pre-configured&lt;/STRONG&gt; for your app (including the path).&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;... Is there a &lt;STRONG&gt;limitation&lt;/STRONG&gt; to the amount of redirect URIs?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/669571"&gt;@CloudServices&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you take a look on the parts of your post, that I enlightened above, you will find out the response, I believe.&lt;/P&gt;&lt;P&gt;For Dropbox, URI can vary (arbitrary or not) within border of set of pre-configured redirect URIs, associated to your application. If particular URI (including loopback variation) is not there, error comes up. That's it. Take a look on &lt;A title="Application Console" href="https://www.dropbox.com/developers/apps" target="_blank" rel="noopener"&gt;your application settings&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;To be honest, I don't understand what kind of connection problems you are trying to avoid and how port randomization would help you!? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 12:00:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596858#M27732</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-05-13T12:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596894#M27736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know why, but my reply hasn't been accepted by the system. I'm trying to post now in smaller chunks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have setup the redirect URI the right way (to &lt;A href="https://127.0.0.1" target="_blank"&gt;https://127.0.0.1&lt;/A&gt;), as I do for google &amp;amp; co. What I'm trying to find out is: Why Dropbox doesn't accept redirect URIs with random ports.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 13:30:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596894#M27736</guid>
      <dc:creator>CloudServices</dc:creator>
      <dc:date>2022-05-13T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596895#M27737</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;My registered redirect URI at google is &lt;A href="https://127.0.0.1" target="_blank"&gt;https://127.0.0.1&lt;/A&gt;. If I now send an authentication request with the redirect URI set to &lt;A href="https://127.0.0.1:51931" target="_blank"&gt;https://127.0.0.1:51931&lt;/A&gt;. Google accepts this redirect URI, because the port doesn't change the destination.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dropbox on the other hand seems to be very strict when it comes to the redirect URIs. The redirect URI from the authentication request has to match exactly the registered redirect URI (port included).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would prefer to use random ports to avoid problems on machines where ports might be not available do to e.g. firewall settings. This way it's possible to switch from a blocked port to a free port without having to register another redirect URI.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 13:31:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596895#M27737</guid>
      <dc:creator>CloudServices</dc:creator>
      <dc:date>2022-05-13T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596904#M27739</link>
      <description>&lt;P&gt;Thanks for writing this up! I'm sending this along to the team to see if we can get this supported. I can't promise if or when that might be done though.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 14:21:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596904#M27739</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-13T14:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596918#M27740</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/669571"&gt;@CloudServices&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;I would prefer to use random ports to avoid problems on machines where ports might be not available do to e.g. firewall settings. This way it's possible to switch from a blocked port to a free port without having to register another redirect URI.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Aha... About the firewall: If your access is forbidden such a move is not gonna fix it. It's unlikely loopback port becomes issue, but if happens to be you should fix your firewall settings, instead.&lt;/P&gt;&lt;P&gt;Yes, it's likely some other service to engage some particular port and so block your application. More stable workaround is registration of few ports and try them sequentially. Very, very unlikely to be needed more than 3 tries. Even if your application falls in such a situation, it's most likely system issue, rather than your application issue. Restarting the system usually fixes the issue. Dropbox site uses the same approach. Linking the site to installed local application happens through port 17600. If it's engaged already, the following (17601) is on go to be tried. If needed, 17602 is going to try. If no one of all 3 ports provides proper response, the site assumes no working local application available. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Just for example. Your situation is different but the same way may be used.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 15:23:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596918#M27740</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-05-13T15:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596923#M27741</link>
      <description>&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Other account, same author. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;</description>
      <pubDate>Fri, 13 May 2022 15:56:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596923#M27741</guid>
      <dc:creator>dgeiss</dc:creator>
      <dc:date>2022-05-13T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596928#M27742</link>
      <description>This is a solution, but not the desired one.&lt;BR /&gt;Let's say the application, that wants to make the authentication, runs on a device, that I can't administrate, because the device belongs to a customer. In this case it would be great to have the opportunity to switch to any port without having the need to register all possible redirect uri, port combinations.</description>
      <pubDate>Fri, 13 May 2022 16:12:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596928#M27742</guid>
      <dc:creator>dgeiss</dc:creator>
      <dc:date>2022-05-13T16:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596933#M27743</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/924022"&gt;@dgeiss&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;...&lt;BR /&gt;Let's say the application, that wants to make the authentication, runs on a device, that I can't administrate, because the device belongs to a customer. ...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Do you assume that Dropbox application can be installed only on devices Dropbox is able to administrate? 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; I don't think so... 🤷 Dropbox is not an administrator on my laptop, where I'm writing now for example, but the application still work (including mentioned loopback port). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; You definitely don't need to be administrator on device where your application works on.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:29:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596933#M27743</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-05-13T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using IdentityModel.OidcClient with Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596947#M27744</link>
      <description>&lt;P&gt;That's not what I mean. The application I am talking about, is the application that I am writing. This application will be installed on the customers device. The device of the customer can't and shouldn't be administered by me or by Dropbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without having the ability to change the settings of a customers device, I have to add some flexibility to my application. In this case the flexibility is needed for the port, that is used in the redirect uri.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1: Dynamic redirect uri - The redirect uri supports random ports OR&lt;/P&gt;&lt;P&gt;Option 2: Static redirect uri - Register many redirect uris (same destination but with different port number).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer option 1.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 17:48:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-IdentityModel-OidcClient-with-Dropbox/m-p/596947#M27744</guid>
      <dc:creator>dgeiss</dc:creator>
      <dc:date>2022-05-13T17:48:10Z</dc:date>
    </item>
  </channel>
</rss>

