auth0 / docs

Auth0 documentation
MIT License
367 stars 1.6k forks source link

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

Open cbehera712 opened 1 month ago

cbehera712 commented 1 month ago

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

Please provide the following: