From dfa2b9c4ce230365a573dea7da8e60cf4ea89011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Sat, 4 Jan 2025 20:18:50 +0100 Subject: [PATCH] Make IdentityProviderManagerCreator @Dependent as we dont need it later --- .../runtime/IdentityProviderManagerCreator.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java index 73326c94d2aee..dd27e39bd7df5 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java @@ -6,7 +6,6 @@ import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.inject.Instance; import jakarta.enterprise.inject.Produces; -import jakarta.inject.Inject; import io.quarkus.arc.DefaultBean; import io.quarkus.runtime.ExecutorRecorder; @@ -19,18 +18,8 @@ /** * CDI bean than manages the lifecycle of the {@link io.quarkus.security.identity.IdentityProviderManager} */ -@ApplicationScoped public class IdentityProviderManagerCreator { - @Inject - Instance> identityProviders; - - @Inject - Instance augmentors; - - @Inject - BlockingSecurityExecutor blockingExecutor; - @ApplicationScoped @DefaultBean @Produces @@ -45,7 +34,8 @@ public Executor get() { @Produces @ApplicationScoped - public IdentityProviderManager ipm() { + public IdentityProviderManager ipm(Instance> identityProviders, + Instance augmentors, BlockingSecurityExecutor blockingExecutor) { boolean customAnon = false; QuarkusIdentityProviderManagerImpl.Builder builder = QuarkusIdentityProviderManagerImpl.builder(); for (var i : identityProviders) {