Hi, using keycloak 15.0.2 image and i cannot get any algorithm to authenticate other than RS256.
i am using PAR for client requests, works fine when using an RS256 token but not others (ES256, PS256). i dont have any fapi profiles enforced on the realm (that would enforce these algo’s)
i’m using this to create PS256 private key:
openssl genpkey -algorithm RSA-PSS -pkeyopt rsa_keygen_bits:2048 -pkeyopt rsa_pss_keygen_md:sha256 -pkeyopt rsa_pss_keygen_mgf1_md:sha256 -pkeyopt rsa_pss_keygen_saltlen:32 -out bff-client.key
Error looks like this:
11:33:32,133 WARN [org.keycloak.events] (default task-60) type=PUSHED_AUTHORIZATION_REQUEST_ERROR, realmId=bff, clientId=bff_client, userId=null, ipAddress=10.0.2.100, error=invalid_request, detail='Authentication failed.'
11:34:58,879 ERROR [org.keycloak.services] (default task-62) KC-SERVICES0025: Error when validating client assertion: java.lang.RuntimeException: Signature on JWT token failed validation
at org.keycloak.keycloak-services@15.0.2//org.keycloak.authentication.authenticators.client.JWTClientAuthenticator.authenticateClient(JWTClientAuthenticator.java:160)
at org.keycloak.keycloak-services@15.0.2//org.keycloak.authentication.ClientAuthenticationFlow.processFlow(ClientAuthenticationFlow.java:72)
at org.keycloak.keycloak-services@15.0.2//org.keycloak.authentication.AuthenticationProcessor.authenticateClient(AuthenticationProcessor.java:861)
at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.utils.AuthorizeClientUtil.authorizeClient(AuthorizeClientUtil.java:51)
at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.par.endpoints.AbstractParEndpoint.authorizeClient(AbstractParEndpoint.java:66)
at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.par.endpoints.ParEndpoint.request(ParEndpoint.java:90)
at jdk.internal.reflect.GeneratedMethodAccessor802.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)