auth0-samples / auth0-xamarin-oidc-samples

Auth0 OIDC Client with Xamarin applications
MIT License
29 stars 38 forks source link

System.InvalidOperationException: 'No browser configured.' #32

Closed asusralis closed 1 year ago

asusralis commented 4 years ago

I was following this guide to having auth0 authentication in Xamarin.Forms, but I ran across an exception that I can't find any information about:

at IdentityModel.OidcClient.AuthorizeClient.AuthorizeAsync (IdentityModel.OidcClient.Browser.DisplayMode displayMode, System.Int32 timeout, System.Object extraParameters) [0x00036] in C:\local\identity\model\IdentityModel.OidcClient\src\AuthorizeClient.cs:36 at IdentityModel.OidcClient.OidcClient.LoginAsync (IdentityModel.OidcClient.LoginRequest request) [0x000ee] in C:\local\identity\model\IdentityModel.OidcClient\src\OidcClient.cs:94

var auth0LoginResult = await _auth0Client.LoginAsync(new { audience = Auth0Config.Audience });

This happens on both emulator and device in Android. I set up the intent filter on my activity. I was using Azure AD B2C login on the same device, so I don't think it has to do with my browser. I see here where the exception is, but the guide I was following didn't have to set the browser property.

Auth0.Core - 6.5.4 Auth0.Android/iOS - 3.0.0 Xamarin.Forms - 4.3.0.947036

frederikprijck commented 1 year ago

Sorry for the very late response, this must have fallen between the cracks.

Over three years later, I can no longer reproduce this issue so I am closing this. But again, sorry for missing this.