Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@cbehera712
Copy link

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:

  • Version of this library used: Auth0.OidcClient.MAUI 1.0.1
  • Version of the platform or framework used, if applicable: net 8.0
  • Other relevant versions (language, server software, OS, browser): Visual studio 2022 MAUI windows machine
  • Other modules/plugins/libraries that might be involved: NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@cbehera712 and others