auth0-samples / auth0-WinFormsWPF-oidc-samples

Auth0 OIDC Client with Windows Forms / WPF applications
MIT License
22 stars 26 forks source link

Application is stuck after calling LoginAsync #20

Closed KarlijnsHub closed 1 year ago

KarlijnsHub commented 4 years ago

Issue Report

Description

What's going wrong is that the application, WindowsFormSample, is stuck after calling LoginAsync

var result = await client.LoginAsync();

It does not give an error or any kind of result. This happens only when I use Visual Studio 2019 as an admin. If I don't use Visual Studio as an admin it works fine. You might expect it to be the otherway around, but a collegue tested it as well and got the same result.

Steps to reproduce the problem

I cloned the WindowsFormSample and updated the .Net version to 4.7.2. Then I updated the Nuget Package Auth0.OidcClient.WinForms to version 3.1.2.

When I downgrade Auth0.OidcClient.WinForms to 2.4.1. it works fine, admin or no admin.

I'd appreciate any help on this.

moorer2k commented 4 years ago

Try adding this to your Auth0ClientOptions:

Browser = new WebBrowserBrowser()

Maracaipe611 commented 3 years ago

@moorer2k this should be setted by default. I had the same problem

benwozniak commented 3 years ago

Our team ran into this issue as well. An update to the quickstart would be appreciated, we are new to authentication code so it's frustrating when things do not work out of the box.

frederikprijck commented 1 year ago

Sorry for not getting back to this, this must have fallen through the cracks. We have improved the visibility of our sample repositories to avoid this from happening again.

Even though it's been a while, I gave this another try and can not reproduce this anymore, so I assume this has been resolved throughout the time.