auth0-samples / auth0-maui-samples

Auth0 Integration Samples for MAUI Applications
Apache License 2.0
0 stars 0 forks source link

Auth0.OidcClient.Tokens.IdTokenValidationException: 'Issuer (iss) claim mismatch in the ID token; expected "https://Domain.com/", found "https://Domain.com". #12

Open cbehera712 opened 4 months ago

cbehera712 commented 4 months ago

I tried with the provided sample and it fails with error in mismatching the issuer url . It automatically adds extra "/" in the domain url.

Further check could notice its happening because of the below dll code which i cant change.

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); }

AliKarimiENT commented 1 month ago

I have the same issue