Repository navigation
Keycloak JWT doesn't support HS256: Only works with RS* ES* etc #20381
Unanswered
archmangler
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
I'm having trouble using JWT as a bearer token (issued by Keycloak) with HS256 signing algorithm in the KC UI. I am able to use it with RS256 and other signing algorithms.
If I configure JWT client to use Client Id and Secret and RS256, or ES256 and others I can successfully request a JWT token from the KC server:
As soon as I switch to HS256, with "Signed JWT" selected (or JWT and Client Secret) and try to request a new JWT token it fails with error:
"parameter client_assertion_type is missing"What could I be missing in setting up JWT in Keycloak to use HS256?
Any way to troubleshoot this in more detail in keycloak ?
Note: the Keycloak documentation doesn't seem to offer any more detailed description of setting up HMAC sigining for JWT.
All reactions