Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Aurangzeb
6 years agoNew member | Level 2
How to login to dropbox account from inside UWP app?
Hi. I've moving my Xamarin app to UWP. In my Xamarin app I use this method of authentication https://gist.github.com/thomashagstrom/b0856a383bcdcf905c7a774c8c1b0879 The trick is webView.Navi...
evry1falls
6 years agoCollaborator | Level 8
Greg-DB wrote:If I understand correctly though, the original question was about how to migrate this flow from a webview in Xamarin to a webview in UWP, but I pointed out that it should actually be processed in the system browser, not a webview.
I also changed the original code for my desktop project to display the Auth page in webbrowser control that I use, not the default webbrowser of the machine, it is working fine, I see no reason why you suggested otherwise. Could you explain it more?
Greg-DB
Dropbox Community Moderator
6 years agoevry1falls Per the /oauth2/authorize documentation, the Dropbox OAuth app authorization flow should be processed in the system browser, not a web view. There's more information linked there, but in short, this is both to comply with Google's policy (since Dropbox offers Google Sign In as an authentication option), as well as for compatibility with the Dropbox site in general. While it may currently work in the control you're using, we've found web views to be more prone to incompatibilities, and since they're not officially supported by the Dropbox site, we can't promise fixes if/when such issues arise.
- evry1falls6 years agoCollaborator | Level 8
Greg-DB wrote:evry1falls Per the /oauth2/authorize documentation, the Dropbox OAuth app authorization flow should be processed in the system browser, not a web view. There's more information linked there, but in short, this is both to comply with Google's policy (since Dropbox offers Google Sign In as an authentication option), as well as for compatibility with the Dropbox site in general. While it may currently work in the control you're using, we've found web views to be more prone to incompatibilities, and since they're not officially supported by the Dropbox site, we can't promise fixes if/when such issues arise.
Thank you.
- Vasilinka5 years agoHelpful | Level 5
May I ask you to send that part of Google's policy that requires DropBox to stop supporting the Web Authentication Broker?
- Greg-DB5 years ago
Dropbox Community Moderator
Vasilinka You can find Google's post here: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
- Vasilinka5 years agoHelpful | Level 5
Thank you so much for your answer!
As far as I understand, please correct me if I'm wrong, here Google says that it is discontinuing support for authentication using Web View. - " we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”.
Next, they recommend "using the device browser for OAuth requests instead of an embedded web-view".
But how it connected with Web Authentication Broker?
As I understand that is absolutely different mechanisms.
Web-view is an embeddable browser and "apps are able to inspect and modify content in a web-view".
Web Authentication Broker is a system API that Windows uses instead of a web-view to prevent user passwords theft by men-in-the-middle.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!