Skip to content

Commit

Permalink
Make IdentityProviderManagerCreator @dependent as we dont need it later
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Jan 4, 2025
1 parent 72dd7dc commit dfa2b9c
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,18 +18,8 @@
/**
* CDI bean than manages the lifecycle of the {@link io.quarkus.security.identity.IdentityProviderManager}
*/
@ApplicationScoped
public class IdentityProviderManagerCreator {

@Inject
Instance<IdentityProvider<?>> identityProviders;

@Inject
Instance<SecurityIdentityAugmentor> augmentors;

@Inject
BlockingSecurityExecutor blockingExecutor;

@ApplicationScoped
@DefaultBean
@Produces
Expand All @@ -45,7 +34,8 @@ public Executor get() {

@Produces
@ApplicationScoped
public IdentityProviderManager ipm() {
public IdentityProviderManager ipm(Instance<IdentityProvider<?>> identityProviders,
Instance<SecurityIdentityAugmentor> augmentors, BlockingSecurityExecutor blockingExecutor) {
boolean customAnon = false;
QuarkusIdentityProviderManagerImpl.Builder builder = QuarkusIdentityProviderManagerImpl.builder();
for (var i : identityProviders) {
Expand Down

0 comments on commit dfa2b9c

Please sign in to comment.