use of com.ctrip.xpipe.redis.console.sso.UserAccessFilter 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;
}
Aggregations