You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
xtremebytes
7 years agoExplorer | Level 3
Dropbox invalid redirect_uri, must be an absolute uri
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 upgr...
- 7 years ago
@xtremebytes
This is the Xamarin Issue which causes the problem. Apparently work in progress:
[iOS] WebView.Source URL's are HTML encoded
Hope that helps.
xtremebytes
Explorer | Level 3
Digging in a bit deeper and looking at this code fragment:
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) => { if (!e.Url.StartsWith (RedirectUri, StringComparison.OrdinalIgnoreCase)) { // we need to ignore all navigation that isn't to the redirect uri. return;
the e.Url 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:
Is there something more that I am missing?
xtremebytes
7 years agoExplorer | Level 3
Another note: the code is based on https://gist.github.com/tomcrusader/b0856a383bcdcf905c7a774c8c1b0879 -- and it used to work fine.
- xtremebytes7 years agoExplorer | Level 3
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.
- Greg-DB7 years agoDropbox StaffThanks for the post. I'm glad to hear you were able to get this working again.
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" ?- xtremebytes7 years agoExplorer | Level 3Thanks, Greg-DB 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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,884 PostsLatest Activity: 5 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!