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

SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key #25

Open
cdecinkoKnight opened this issue Aug 23, 2022 · 0 comments

Comments

@cdecinkoKnight
Copy link

I've spun up a new .NET Framework 4.72 MVC project. I updated all of the Nuget packages and installed Owin.Security.Keycloak, Microsoft.Owin.Host.SystemWeb and Microsoft.Owin.Security.Cookies. I am able to get to the login page, enter my creds and confirm I am logged in with a valid Keycloak session.

But, coming back to my .NET app, I get this error:

IDX10501: Signature validation failed. Unable to match key:
kid: '2fd299de-d524-4435-9ac0-70d935ae63ac'.
Number of keys in TokenValidationParameters: '0'.
Number of keys in Configuration: '2'.
Exceptions caught:
'[PII of type 'System.Text.StringBuilder' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
token: '[PII of type 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.

Does this not support the latest packages?

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

1 participant