use of org.springframework.boot.context.embedded.FilterRegistrationBean 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;
}
use of org.springframework.boot.context.embedded.FilterRegistrationBean in project x-pipe by ctripcorp.
the class ConsoleContextConfig method userAccessFilter.
@Bean
@Profile(AbstractProfile.PROFILE_NAME_PRODUCTION)
public FilterRegistrationBean userAccessFilter(ConsoleConfig consoleConfig) {
FilterRegistrationBean userAccessFilter = new FilterRegistrationBean();
userAccessFilter.setFilter(new UserAccessFilter(UserInfoHolder.DEFAULT, consoleConfig));
userAccessFilter.addUrlPatterns("/*");
return userAccessFilter;
}
use of org.springframework.boot.context.embedded.FilterRegistrationBean in project x-pipe by ctripcorp.
the class SSOConfigurations method assertionHolderFilter.
@Bean
public FilterRegistrationBean assertionHolderFilter() {
FilterRegistrationBean assertionHolderFilter = new FilterRegistrationBean();
assertionHolderFilter.setFilter(filter("com.ctrip.infosec.sso.client.util.AssertionThreadLocalFilter"));
assertionHolderFilter.addUrlPatterns("/*");
return assertionHolderFilter;
}
use of org.springframework.boot.context.embedded.FilterRegistrationBean in project apollo by ctripcorp.
the class WebContextConfiguration method userAccessFilter.
@Bean
public FilterRegistrationBean userAccessFilter() {
FilterRegistrationBean filter = new FilterRegistrationBean();
filter.setFilter(new UserAccessFilter(userInfoHolder));
filter.addUrlPatterns("/*");
return filter;
}
use of org.springframework.boot.context.embedded.FilterRegistrationBean in project x-pipe by ctripcorp.
the class CatConfig method catFilter.
@Bean
public FilterRegistrationBean catFilter() {
FilterRegistrationBean bean = new FilterRegistrationBean();
bean.setFilter(new CatFilter());
bean.setName("cat-filter");
bean.addUrlPatterns("/*");
bean.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.FORWARD);
return bean;
}
Aggregations