From f964a49393f183bd1a404e3777592b67d6a97e52 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 6c68d4d00ad64..c3ed5e0d022d6 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; @@ -78,7 +80,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