You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 this issue
May 6, 2024
· 0 comments
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
The text was updated successfully, but these errors were encountered: