MAUI Windows OAuth : auth0Client.LoginAsync() method throws exception with a message stating Auth0.OidcClient.Tokens.IdTokenValidationException: 'Issuer (iss) claim mismatch in the ID token; expected "https://{domain}/", found "https://{domain}".' #10413
auth0Client.LoginAsync() method throws exception with a message stating Auth0.OidcClient.Tokens.IdTokenValidationException: 'Issuer (iss) claim mismatch in the ID token; expected "https://{domain}/", found "https://{domain}".'
Not sure why it adds extra (/) to it which fails the validation . On further check could see in the below dll code it adds "/" which I cant change it .
auth0Client.LoginAsync() method throws exception with a message stating Auth0.OidcClient.Tokens.IdTokenValidationException: 'Issuer (iss) claim mismatch in the ID token; expected "https://{domain}/", found "https://{domain}".'
Not sure why it adds extra (/) to it which fails the validation . On further check could see in the below dll code it adds "/" which I cant change it .
protected Auth0ClientBase(Auth0ClientOptions options, string platformName) { _options = options; _idTokenRequirements = new IdTokenRequirements("https://" + _options.Domain + "/", _options.ClientId, options.Leeway, options.MaxAge); _userAgent = CreateAgentString(platformName); _idTokenValidator = new IdTokenValidator(options.BackchannelHandler); }
Environment