<?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: URI misatch in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40949#M1273</link>
    <description>&lt;P&gt;Ok, I've understood...&lt;/P&gt;

&lt;P&gt;I can use differents redirect_uri, but...&lt;/P&gt;

&lt;P&gt;for the "&lt;A href="https://www.dropbox.com/1/oauth2/authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/authorize&lt;/A&gt;", I must to wait for the callback on redirect_uri.&lt;/P&gt;

&lt;P&gt;for the "&lt;A href="https://api.dropbox.com/1/oauth2/token" rel="nofollow noreferrer"&gt;https://api.dropbox.com/1/oauth2/token&lt;/A&gt;", I must do a GetResponse() not wait for the callback over the redirect_uri.&lt;/P&gt;

&lt;P&gt;Why must I add a redirect_uri on the second call if it isn't used ?&lt;/P&gt;

&lt;P&gt;Thank you to enlighten me.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2015 21:58:15 GMT</pubDate>
    <dc:creator>Julie P.22</dc:creator>
    <dc:date>2015-08-12T21:58:15Z</dc:date>
    <item>
      <title>URI misatch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40948#M1272</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I code a web service in .net/C# and I use the oauth2.&lt;/P&gt;

&lt;P&gt;I succeed to do the authorization :&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/1/oauth2/authorize" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/1/oauth2/authorize&lt;/A&gt;&lt;BR /&gt;
with params : client_id, state, response_type and redirect_uri&lt;/P&gt;

&lt;P&gt;My redirect_uri is a call to another part of my web service.&lt;BR /&gt;
Inside, I call the next step :&lt;BR /&gt;
&lt;A href="https://api.dropbox.com/1/oauth2/token" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropbox.com/1/oauth2/token&lt;/A&gt;&lt;BR /&gt;
with params : code, grant_type, client_id, client_secretand redirect_uri&lt;/P&gt;

&lt;P&gt;It fails. The error message is "redirect_uri mismatch".&amp;nbsp;I've checked multiple times and it is the same in my request and in my dropbox app.&lt;/P&gt;

&lt;P&gt;I use two differents uri for the first (authorize) and second (token) request (both saved in my dropbox app), is it the problem?&lt;/P&gt;

&lt;P&gt;If I use the same uri, how can I distinct the first and second callback ?&lt;/P&gt;

&lt;P&gt;Thanks to your help.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40948#M1272</guid>
      <dc:creator>Julie P.22</dc:creator>
      <dc:date>2019-05-29T09:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: URI misatch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40949#M1273</link>
      <description>&lt;P&gt;Ok, I've understood...&lt;/P&gt;

&lt;P&gt;I can use differents redirect_uri, but...&lt;/P&gt;

&lt;P&gt;for the "&lt;A href="https://www.dropbox.com/1/oauth2/authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/authorize&lt;/A&gt;", I must to wait for the callback on redirect_uri.&lt;/P&gt;

&lt;P&gt;for the "&lt;A href="https://api.dropbox.com/1/oauth2/token" rel="nofollow noreferrer"&gt;https://api.dropbox.com/1/oauth2/token&lt;/A&gt;", I must do a GetResponse() not wait for the callback over the redirect_uri.&lt;/P&gt;

&lt;P&gt;Why must I add a redirect_uri on the second call if it isn't used ?&lt;/P&gt;

&lt;P&gt;Thank you to enlighten me.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:58:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40949#M1273</guid>
      <dc:creator>Julie P.22</dc:creator>
      <dc:date>2015-08-12T21:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: URI misatch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40950#M1274</link>
      <description>&lt;P&gt;The &lt;CODE&gt;redirect_uri&lt;/CODE&gt; parameter on &lt;A href="https://www.dropbox.com/developers/core/docs#oa2-token" rel="nofollow noreferrer"&gt;/oauth2/token&lt;/A&gt; is documented as:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Only used to validate that it matches the original &lt;CODE&gt;/oauth2/authorize&lt;/CODE&gt; , not used to redirect again.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I believe&amp;nbsp;that's a security feature of OAuth 2, from the spec here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://tools.ietf.org/html/rfc6749#section-4.1.3" rel="nofollow noreferrer"&gt;https://tools.ietf.org/html/rfc6749#section-4.1.3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 00:51:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/URI-misatch/m-p/40950#M1274</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-13T00:51:53Z</dc:date>
    </item>
  </channel>
</rss>

