Search in sources :

Example 1 with UserHeaderFilter

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;
}
Also used : UserHeaderFilter(org.finra.gatekeeper.common.authfilter.UserHeaderFilter) SSOParser(org.finra.gatekeeper.common.authfilter.parser.SSOParser) FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean) AutoConfigureOrder(org.springframework.boot.autoconfigure.AutoConfigureOrder)

Aggregations

UserHeaderFilter (org.finra.gatekeeper.common.authfilter.UserHeaderFilter)1 SSOParser (org.finra.gatekeeper.common.authfilter.parser.SSOParser)1 AutoConfigureOrder (org.springframework.boot.autoconfigure.AutoConfigureOrder)1 FilterRegistrationBean (org.springframework.boot.context.embedded.FilterRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1