Search in sources :

Example 6 with FilterRegistrationBean

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;
}
Also used : FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Example 7 with FilterRegistrationBean

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;
}
Also used : FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

FilterRegistrationBean (org.springframework.boot.context.embedded.FilterRegistrationBean)7 Bean (org.springframework.context.annotation.Bean)6 ServletRegistrationBean (org.springframework.boot.context.embedded.ServletRegistrationBean)2 UserAccessFilter (com.ctrip.framework.apollo.portal.spi.ctrip.filters.UserAccessFilter)1 UserAccessFilter (com.ctrip.xpipe.redis.console.sso.UserAccessFilter)1 AbstractProfile (com.ctrip.xpipe.spring.AbstractProfile)1 CatFilter (com.dianping.cat.servlet.CatFilter)1 UserHeaderFilter (org.finra.gatekeeper.common.authfilter.UserHeaderFilter)1 SSOParser (org.finra.gatekeeper.common.authfilter.parser.SSOParser)1 AutoConfigureOrder (org.springframework.boot.autoconfigure.AutoConfigureOrder)1 ServletListenerRegistrationBean (org.springframework.boot.context.embedded.ServletListenerRegistrationBean)1