<?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: Dropbox invalid redirect_uri, must be an absolute uri in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275023#M16409</link>
    <description>&lt;P&gt;Digging in a bit deeper and looking at this code fragment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this._oauth2State = Guid.NewGuid ().ToString ("N");
				var authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri (OAuthResponseType.Token, DropboxAppKey, RedirectUri, this._oauth2State, false, false, null, true); //force re-authenticate
				var webView = new WebView { Source = new UrlWebViewSource { Url = authorizeUri.AbsoluteUri } };
				webView.Navigating += async (sender, e) =&amp;gt; {
					if (!e.Url.StartsWith (RedirectUri, StringComparison.OrdinalIgnoreCase)) {
						// we need to ignore all navigation that isn't to the redirect uri.
						return;
					&lt;/PRE&gt;
&lt;P&gt;the e.Url&amp;nbsp;used to match the RedirectUri, and now it doesn't. Instead, the e.Url now contains the RedirectUri as a query string parameter as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;hidden&amp;gt;&amp;amp;redirect_uri=&amp;lt;encoded_redirect_uri&amp;gt;&amp;amp;state=7396a67d6c604d45899fd5c588877d1f&amp;amp;force_reauthentication=true" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;hidden&amp;gt;&amp;amp;redirect_uri=&amp;lt;encoded_redirect_uri&amp;gt;&amp;amp;state=7396a67d6c604d45899fd5c588877d1f&amp;amp;force_reauthentication=true&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something more that I am missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 04:16:09 GMT</pubDate>
    <dc:creator>xtremebytes</dc:creator>
    <dc:date>2018-05-04T04:16:09Z</dc:date>
    <item>
      <title>Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275022#M16408</link>
      <description>&lt;P&gt;My app (Xamarin Forms) used to work with the Dropbox API authorisation but now it is showing me an error "invalid redirect_uri, must be an absolute uri". This started happening, probably after I upgraded the Visual Studio/Xamarin nuget package for Dropbox.Api to 4.8.0 from 4.7.0. Absolutely, nothing else in the code for Dropbox authorisation was changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yet, the non-local URLs I have for OAuth2 redirection on my app begin with "https://". What could have gone wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275022#M16408</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2019-05-29T09:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275023#M16409</link>
      <description>&lt;P&gt;Digging in a bit deeper and looking at this code fragment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this._oauth2State = Guid.NewGuid ().ToString ("N");
				var authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri (OAuthResponseType.Token, DropboxAppKey, RedirectUri, this._oauth2State, false, false, null, true); //force re-authenticate
				var webView = new WebView { Source = new UrlWebViewSource { Url = authorizeUri.AbsoluteUri } };
				webView.Navigating += async (sender, e) =&amp;gt; {
					if (!e.Url.StartsWith (RedirectUri, StringComparison.OrdinalIgnoreCase)) {
						// we need to ignore all navigation that isn't to the redirect uri.
						return;
					&lt;/PRE&gt;
&lt;P&gt;the e.Url&amp;nbsp;used to match the RedirectUri, and now it doesn't. Instead, the e.Url now contains the RedirectUri as a query string parameter as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;hidden&amp;gt;&amp;amp;redirect_uri=&amp;lt;encoded_redirect_uri&amp;gt;&amp;amp;state=7396a67d6c604d45899fd5c588877d1f&amp;amp;force_reauthentication=true" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;hidden&amp;gt;&amp;amp;redirect_uri=&amp;lt;encoded_redirect_uri&amp;gt;&amp;amp;state=7396a67d6c604d45899fd5c588877d1f&amp;amp;force_reauthentication=true&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something more that I am missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 04:16:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275023#M16409</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2018-05-04T04:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275024#M16410</link>
      <description>&lt;P&gt;Another note: the code is based on&amp;nbsp;&lt;A href="https://gist.github.com/tomcrusader/b0856a383bcdcf905c7a774c8c1b0879" target="_blank"&gt;https://gist.github.com/tomcrusader/b0856a383bcdcf905c7a774c8c1b0879&lt;/A&gt; -- and it used to work fine.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 03:52:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275024#M16410</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2018-05-04T03:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275025#M16411</link>
      <description>&lt;P&gt;Seems like there were some issues with the new Xamarin Forms upgrade, .net and PCL stuff, so I rolled back all packages upgrades including Dropbox and now things are working.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 05:16:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275025#M16411</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2018-05-04T05:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275067#M16418</link>
      <description>Thanks for the post. I'm glad to hear you were able to get this working again.&lt;BR /&gt;&lt;BR /&gt;I'm not sure I follow this totally though, so just to be clear, are you saying there is a bug in the official Dropbox .NET SDK v4.8.0, or does the bug only appear to be in the "Xamarin Forms upgrade, .net and PCL stuff" ?</description>
      <pubDate>Fri, 04 May 2018 16:00:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275067#M16418</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-04T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275216#M16433</link>
      <description>Thanks, &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; It is difficult to blame the Dropbox .NET SDK v4.8.0. I need to upgrade the Dropbox SDK only and see if the problem persists. I will update this thread accordingly. Unfortunately, this may take a while before I get the time to do this.</description>
      <pubDate>Sat, 05 May 2018 21:08:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/275216#M16433</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2018-05-05T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278810#M16707</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/587807" target="_self"&gt;@xtremebytes&lt;/A&gt; I ran into the exact same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My investigations:&lt;/P&gt;&lt;P&gt;Just downgrading to Xamarin.Forms 2.5.1 resolved the issue for me. I kept the newer version of the dropbox sdk and the .NET standard stuff. The issue only exists on iOS, Android and UWP still work fine without downgrading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems the problem occured in the Xamarin.Forms iOS stack while switching from Forms 2.5.1 to 3.0 or 3.1-Pre1.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 16:10:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278810#M16707</guid>
      <dc:creator>Otti</dc:creator>
      <dc:date>2018-06-03T16:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278816#M16708</link>
      <description>&lt;P&gt;@xtremebytes&lt;/P&gt;&lt;P&gt;This is the Xamarin Issue which causes the problem. Apparently work in progress:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/xamarin/Xamarin.Forms/issues/2736" target="_blank"&gt;[iOS] WebView.Source URL's are HTML encoded&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 16:57:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278816#M16708</guid>
      <dc:creator>Otti</dc:creator>
      <dc:date>2018-06-03T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox invalid redirect_uri, must be an absolute uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278821#M16709</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/691675"&gt;@Otti&lt;/a&gt;&amp;nbsp;Thanks a lot for confirming this.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 17:19:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-invalid-redirect-uri-must-be-an-absolute-uri/m-p/278821#M16709</guid>
      <dc:creator>xtremebytes</dc:creator>
      <dc:date>2018-06-03T17:19:02Z</dc:date>
    </item>
  </channel>
</rss>

