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...
Greg-DB
Dropbox Community Moderator
6 years agoevry1falls I'm not sure I understand your comment. The information in my comment does refer to using the OAuth 2 app authorization "token" flow to allow the end-user to connect the app to their own personal Dropbox account, including shared files, without giving their password to the app. Implementing the OAuth 2 app authorization flow to allow end-users to authorize the app is the intended design.
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.
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-DB6 years ago
Dropbox Community Moderator
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.
- 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
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!