dropbox / dropbox-sdk-dotnet

The Official Dropbox API V2 SDK for .NET
https://www.dropbox.com/developers
MIT License
331 stars 450 forks source link

SIGN-IN PROCESS IN DROPBOX-SDK-DOTNET #301

Open GiorgioITS opened 2 years ago

GiorgioITS commented 2 years ago

I tried SimpleTest and OAuthPKCE in the dropbox-sdk-dotnet package. They work fine, however after the sign-in process, and even after the program has ended, the computer browser (Microsoft Edge) remains open on page 127.0.0.1. How can I programmatically close and dismiss it? I also migrated the same test program in Xamarin - here the instruction System.Diagnostics.Process.Start(authorizeUri.ToString()); throws an exception and I replaced it with: await Xamarin.Essentials.Browser.OpenAsync(authorizeUri); But I have the same issues: the browser page remains open on page 127.0.0.1 after the sign-in process.

greg-db commented 2 years ago

When processing the app authorization flow, the remaining page is expected unfortunately. I'll pass this along to the team as feedback to see if we can improve this in some way in the future, but I believe we don't have a way to close that page automatically.