I am trying to support http://hl7.org/fhir/uv/bulkdata/STU1.0.1/authorization/index.html with keycloak and facing some trouble.
The SMART-on-FHIR community has made some public/private keypairs available for testing: one with ES384 and one with RS384.
When I try using these endpoints as JWKS URIs from the Keycloak console where we manage Client credentials, I get a NullPointerException from inside keycloak because these entries are missing the `use` field. Is it documented somewhere that Keycloak requires that field in JWKS URIs?
Anyway, based on this, I:
It seemed to work, but when I went to use it I ran into an error that I believe is a known issue: KEYCLOAK-16702
Next, I repeated the process for the ES384.public.json file.
Once again, the upload seemed to work, but fails when I make a call and try to validate my client with a signed JWT. I cannot tell if it is directly related to KEYCLOAK-16702 or not, but it looks and feels a bit different:
```
16:47:12,280 ERROR XNIO-1 task-5 [org.keycloak.services] KC-SERVICES0025: Error when validating client assertion
java.lang.RuntimeException: Error when loading public keys: java.lang.RuntimeException: org.keycloak.common.util.PemException: java.security.spec.InvalidKeySpecException: encoded key spec not recognized: algorithm identifier 1.2.840.10045.2.1 in key not recognised
```
Is there anything I am missing wrt support for ECDSA-based signature algorithms (ES256, ES384, and ES512) for client authentication via signed JWT?
Do you agree that it is sufficiently different from KEYCLOAK-16702 to warrant its own issue?
Would it make sense to be up front in the UI about not supporting `Import Certificate` behavior unless the algorithm is RS256? Maybe just as a stop-gap until https://issues.redhat.com/browse/KEYCLOAK-10462 is implemented?
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/bb6ce6d0-ddbd-44dd-8c01-916ebcea3018n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/fdb084ed-f5d2-4f0c-8f67-6021981c8f40n%40googlegroups.com.