use of io.quarkus.vertx.http.deployment.FilterBuildItem in project keycloak by keycloak.
the class KeycloakProcessor method initializeFilter.
@BuildStep
void initializeFilter(BuildProducer<FilterBuildItem> filters, LaunchModeBuildItem launchModeBuildItem) {
QuarkusRequestFilter filter = new QuarkusRequestFilter();
LaunchMode launchMode = launchModeBuildItem.getLaunchMode();
if (launchMode.isDevOrTest()) {
filter = new QuarkusDevRequestFilter();
}
filters.produce(new FilterBuildItem(filter, FilterBuildItem.AUTHORIZATION - 10));
}
Aggregations