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
nashworth
4 years agoHelpful | Level 5
UWP Webview and Token Authorization
Since Dropbox has decided to nix support for Edge 18, which has made the UWP Webview control useless for authorization to get a token, is there a workable solution for UWP?
I have not found a w...
Greg-DB
4 years agoDropbox Staff
It sounds like the web view unfortunately doesn't use a recent/supported browser engine even when the latest Edge is installed. Using web views isn't officially supported for the OAuth flow though anyway, so the flow should be sent through the system browser regardless.
If you can't run a listener to handle the redirect URI in UWP, one solution may be to send the PKCE OAuth flow through the system browser, with a custom URL scheme registered in your app used as the redirect URI to receive the result.
The API v2 .NET SDK doesn't have a sample like this for UWP, but I'll pass this along as a feature request for the team to write and share one. I can't promise if/when that might be done though.
- Semaphore4 years agoHelpful | Level 6Hello Greg, it's not an option. You've broken many uwp apps (end users are frustrated) and waiting a month while you prepare sample and we rewrite our apps, build them, publish and pass certification is not what people are waiting for. Other cloud providers like google and onedrive still work fine and end users are forced to switch to them. Is that a recommended solution to a problem? Obsoleting edge 18 was premature and unjustified choise and needed to be unrolled in expedite way.
- Greg-DB4 years agoDropbox Staff
nashworth Thanks for sharing that link!
Semaphore Thanks for the feedback! I'll pass it along to the team to see if we can get that working again. I can't make any promises myself though as web views weren't officially supported for this, and the app authorization page is part of the Dropbox web site and so subject to its system requirements. I'll follow up here once I have an updates on that.
Given that, whether or not the team is able to make this work in the web view again, I highly recommend updating your app to use the system browser as documented. It looks like launching the URI as shown here in Microsoft's documentation, and handling the result via a custom URL scheme as shown here in their documentation would be a good solution going forward.
- Andrey K.14 years agoHelpful | Level 5
Hi Greg!
If you highly recommend updating our app to use the system browser as documented, is it possible to get simple sample how to do this in UWP?
I need ANY help. I spent many days for trying to get help from your documentation, wrote two tickets, but couldn't find working docs for UWP.
Since October our customers couldn't use our app for connecting to their data in Dropbox.
And, please, remove samples for universalDemo from https://www.dropbox.com/developers/documentation/dotnet
It's completely useless for UWP now.
- nashworth4 years agoHelpful | Level 5
Thank you, I will look into that option. The existing samples provide a blueprint for how it should work.
Documentation on creating a uri scheme for UWP app to handle redirect:
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation
- Semaphore4 years agoHelpful | Level 6In the worst case you can offer another button "proceed anyway". I don't believe edge 18 won't be able to display two buttons and several textboxes.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 5 years 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!