From 6da97f775c2fb2d35873b81ab37a2952b7d0df8a Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Fri, 10 Mar 2023 10:14:18 -0300 Subject: [PATCH] adding default crypto provider SPI to native images --- .../keycloak/pep/deployment/KeycloakReflectionBuildStep.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakReflectionBuildStep.java b/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakReflectionBuildStep.java index eb93628c912bf..2e30a81c9ec2f 100644 --- a/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakReflectionBuildStep.java +++ b/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakReflectionBuildStep.java @@ -9,6 +9,8 @@ import org.keycloak.adapters.authorization.cip.HttpClaimInformationPointProviderFactory; import org.keycloak.authorization.client.representation.ServerConfiguration; import org.keycloak.authorization.client.representation.TokenIntrospectionResponse; +import org.keycloak.common.crypto.CryptoProvider; +import org.keycloak.crypto.def.DefaultCryptoProvider; import org.keycloak.jose.jwk.JSONWebKeySet; import org.keycloak.jose.jwk.JWK; import org.keycloak.jose.jws.JWSHeader; @@ -79,7 +81,8 @@ public void registerServiceProviders(BuildProducer ser serviceProvider.produce(new ServiceProviderBuildItem(ClaimInformationPointProviderFactory.class.getName(), HttpClaimInformationPointProviderFactory.class.getName(), ClaimsInformationPointProviderFactory.class.getName())); - + serviceProvider.produce(new ServiceProviderBuildItem(CryptoProvider.class.getName(), + DefaultCryptoProvider.class.getName())); } @BuildStep