<?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: Deep linking using custom url scheme in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484605#M1683</link>
    <description>&lt;P&gt;Thanks! I'll also ask the team to clarify that error message to distinguish between PKCE and non-PKCE.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 19:24:40 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-01-05T19:24:40Z</dc:date>
    <item>
      <title>Deep linking using custom url scheme</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484493#M1680</link>
      <description>&lt;P&gt;Currently I'm working on migrating my app from the OAuth2 token-flow to the code-flow with refresh tokens (as will be &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" target="_self"&gt;required in future by Dropbox&lt;/A&gt;). Now I'm facing the problem that custom url schemes like "com.example.appname" are not accepted as redirect urls of the code flow, and therefore opening the authorization page shows the 400 error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Invalid redirect_uri. When response_type=code, redirect_uri must start with "https://", unless it's a localhost URI.&lt;/PRE&gt;&lt;P&gt;The problem is, that Windows apps are not allowed to listen for https/localhost redirects, unless they where started with elevated admin privileges (which I want to avoid of course). UWP apps can register custom url schemes though, as is also common on other platforms like Android.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question, will Dropbox allow custom url schemes before the short lived tokens become mandatory, or how should we solve this dilemma?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. My code-flow already works for other services like GoogleDrive or OneDrive and I'm aware of the solution with localhost plus port number, but free ports must be determined dynamically, they cannot be choosen fix, so we cannot register them in the developer console.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:42:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484493#M1680</guid>
      <dc:creator>martinstoeckli</dc:creator>
      <dc:date>2021-01-05T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deep linking using custom url scheme</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484540#M1681</link>
      <description>&lt;P&gt;Dropbox does not currently have plans to change the redirect URI requirements when using the standard 'response_type=code'. You should be able to use a custom URL scheme like this when using the PKCE flow in particular though. You can find more information on using that in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the authorization documentation&lt;/A&gt; and &lt;A href="https://www.dropbox.com/lp/developers/reference/oauth-guide" target="_self"&gt;OAuth Guide&lt;/A&gt;. Please give that a try and let me know if that doesn't work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, just for clarity (for you or anyone else reading this), note that 'response_type=token' itself is not being retired, so you can continue using that if you wish, even after&amp;nbsp;September 30th, 2021.&amp;nbsp;Dropbox will just no longer return new long-lived access tokens at that point, only short-lived access tokens. (Though, this flow doesn't support retrieving refresh tokens.) We do&amp;nbsp;recommend the PKCE flow over the token flow though. (And the PKCE flow does support retrieving refresh tokens.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, if there isn't a suitable redirect URI that you can use in your environment, you can forgo use of the 'redirect_uri' parameter entirely, in&amp;nbsp;which case the user will be just presented with the authorization code to copy/paste into your app manually.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:45:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484540#M1681</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-05T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deep linking using custom url scheme</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484582#M1682</link>
      <description>&lt;P&gt;Hello Greg-DB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's great, this is the missing piece I needed, thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is simply no reason not to use the PKCE, I just didn't expect it to behave differently and used a test environment to create the URL. As soon as the "code_challenge" is included, the autorization page is shown correctly. The other alternatives wouldn't have been a solution, with synchronisation transparently in the background, copy pasting a code or login for each sync is way too cumbersome for users. But fortunately this is not necessary at all...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW your API documentation is really helpful, one of the best I had to implement so far.&lt;/P&gt;&lt;P&gt;Thanks again and best regards:&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 18:07:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484582#M1682</guid>
      <dc:creator>martinstoeckli</dc:creator>
      <dc:date>2021-01-05T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deep linking using custom url scheme</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484605#M1683</link>
      <description>&lt;P&gt;Thanks! I'll also ask the team to clarify that error message to distinguish between PKCE and non-PKCE.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 19:24:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Deep-linking-using-custom-url-scheme/m-p/484605#M1683</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-01-05T19:24:40Z</dc:date>
    </item>
  </channel>
</rss>

