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) {