Skip to content

Commit

Permalink
Resolve roles allowed configuration expression after config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Feb 14, 2023
1 parent 3113c0b commit ec0cacd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import java.util.function.Function;
import java.util.function.Predicate;

import io.quarkus.deployment.annotations.Consume;
import io.quarkus.deployment.builditem.RuntimeConfigSetupCompleteBuildItem;
import jakarta.enterprise.context.ApplicationScoped;

import org.jboss.jandex.AnnotationInstance;
Expand Down Expand Up @@ -536,6 +538,7 @@ void gatherSecurityChecks(BuildProducer<SyntheticBeanBuildItem> syntheticBeans,
}).done());
}

@Consume(RuntimeConfigSetupCompleteBuildItem.class)
@BuildStep
@Record(ExecutionTime.RUNTIME_INIT)
public void resolveConfigExpressionRoles(Optional<ConfigExpRolesAllowedSecurityCheckBuildItem> configExpRolesChecks,
Expand Down

0 comments on commit ec0cacd

Please sign in to comment.