From a034688ed33991ad546a7c6f3c7e1dae68716826 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Wed, 14 Apr 2021 10:44:27 +0100 Subject: [PATCH] Update quarkus-oidc and quarkus-oidc-client to enable SSL in Native --- .../oidc/client/deployment/OidcClientBuildStep.java | 6 ++++++ .../io/quarkus/oidc/deployment/OidcBuildStep.java | 6 ++++++ integration-tests/oidc/pom.xml | 13 ------------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java b/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java index fd64b702cd4be..26ee1b011e9bc 100644 --- a/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java +++ b/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java @@ -26,6 +26,7 @@ import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.ApplicationArchivesBuildItem; import io.quarkus.deployment.builditem.EnableAllSecurityServicesBuildItem; +import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; import io.quarkus.gizmo.ClassCreator; @@ -58,6 +59,11 @@ EnableAllSecurityServicesBuildItem security() { return new EnableAllSecurityServicesBuildItem(); } + @BuildStep(onlyIf = IsEnabled.class) + ExtensionSslNativeSupportBuildItem enableSslInNative() { + return new ExtensionSslNativeSupportBuildItem(Feature.OIDC_CLIENT); + } + @BuildStep(onlyIf = IsEnabled.class) void registerProvider(BuildProducer additionalBeans) { additionalBeans.produce(AdditionalBeanBuildItem.unremovableOf(TokensProducer.class)); diff --git a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java index 780907c2d5b43..e61f35f66a213 100644 --- a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java +++ b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java @@ -22,6 +22,7 @@ import io.quarkus.deployment.annotations.ExecutionTime; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.EnableAllSecurityServicesBuildItem; +import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.oidc.SecurityEvent; @@ -85,6 +86,11 @@ EnableAllSecurityServicesBuildItem security() { return new EnableAllSecurityServicesBuildItem(); } + @BuildStep(onlyIf = IsEnabled.class) + ExtensionSslNativeSupportBuildItem enableSslInNative() { + return new ExtensionSslNativeSupportBuildItem(Feature.OIDC); + } + @Record(ExecutionTime.RUNTIME_INIT) @BuildStep(onlyIf = IsEnabled.class) public SyntheticBeanBuildItem setup( diff --git a/integration-tests/oidc/pom.xml b/integration-tests/oidc/pom.xml index 29c875afc0ae0..469a31eba448a 100644 --- a/integration-tests/oidc/pom.xml +++ b/integration-tests/oidc/pom.xml @@ -153,19 +153,6 @@ - - native-image - - - native - - - - - true - - -