use of org.springframework.boot.context.embedded.FilterRegistrationBean in project x-pipe by ctripcorp.
the class SSOConfigurations method ctripSSOFilter.
@Bean
public FilterRegistrationBean ctripSSOFilter() {
FilterRegistrationBean ctripSSOFilter = new FilterRegistrationBean();
ctripSSOFilter.setFilter(new CtripSSOFilter());
ctripSSOFilter.addUrlPatterns("/*");
return ctripSSOFilter;
}
use of org.springframework.boot.context.embedded.FilterRegistrationBean in project spring-boot-quick by vector4wang.
the class WebSecurityConfig method oauth2ClientFilterRegistration.
@Bean
public FilterRegistrationBean oauth2ClientFilterRegistration(OAuth2ClientContextFilter filter) {
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(filter);
registration.setOrder(-100);
return registration;
}
Aggregations