-
Notifications
You must be signed in to change notification settings - Fork 0
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
[keycloak - OID4VCI] Make signature-algorithm selectable #13
Comments
The description on the source ticket reads:
Let us break it down:
OpenID4VCI makes indeed a case for a credential issuer to support several signature algorithms, which should be communicated by the On point 2, the current state of Keycloak's implementation already uses the active key "by default" for signing. /**
* Returns the key stored under kid, or the active key for the given jws algorithm,
*
* @param kid
* @param algorithm
* @return
*/
protected KeyWrapper getKey(String kid, String algorithm) {
// Allow the service to work with the active key if keyId is null
// And we still have to figure out how to proceed with key rotation
if (keyId == null) {
return keycloakSession.keys().getActiveKey(keycloakSession.getContext().getRealm(), KeyUse.SIG, algorithm);
}
return keycloakSession.keys().getKey(keycloakSession.getContext().getRealm(), kid, KeyUse.SIG, algorithm);
} That takes us to Point 3 about overriding this default key for signing.
|
Sync conclusions:
|
This ticket is likely to be closed with the changes of #9. |
This is a proxy of:
The text was updated successfully, but these errors were encountered: