Repository navigation
Exception - SecurityTokenSignatureKeyNotFoundException when Keycloak updated to Version 25.0.1 #36654
Unanswered
Shweta-2023-commits
asked this question in
Q&A
Replies: 1 comment 1 reply
|
@Shweta-2023-commits going from 2.5 to 25 is a big leap. Quite a lot has changed in Keycloak in regards to tokens, keys, algorithms etc. You are getting an error from your .NET service saying that it cannot resolve a key used to sign the token (and therefore cannot verify it). That said, you'll need to debug your service to find the root cause. You can start with making sure that your service is able to load OIDC metadata and JWK set from the Keycloak's |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are trying to upgrade our Keycloak to the latest version of 25.0.1.
We have been using version 2.5.1 till present.
After upgarding Keycloak and running my project, I'm facing this Exception issue -
SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key: kid: 'PII is hidden. For more details, see [https://aka.ms/IdentityModel/PII.]'.
I've tried making changes to the algorithm to HS512 instead of RS256 in Keycloak and
![Exception error Keycloak when tried for HS512 algo setting through
my code but to vain.
Any solution in this regard would be highly appreciated.
Thanks.
All reactions