use of org.finra.gatekeeper.common.authfilter.UserHeaderFilter in project Gatekeeper by FINRAOS.
the class GatekeeperCommonConfig method userProfileFilterRegistration.
/* Creating UserProfileFilter with order of 0 to ensure it happens first */
@Bean
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE)
public FilterRegistrationBean userProfileFilterRegistration() {
FilterRegistrationBean userProfileFilterRegistration = new FilterRegistrationBean();
userProfileFilterRegistration.setFilter(new UserHeaderFilter(new SSOParser(userIdHeader)));
userProfileFilterRegistration.setOrder(0);
return userProfileFilterRegistration;
}
Aggregations