org.springframework.web.filter.CompositeFilter Java Examples

The following examples show how to use org.springframework.web.filter.CompositeFilter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringSecurityConfiguration.java    From crnk-example with Apache License 2.0 5 votes vote down vote up
private CompositeFilter ssoFilter() {
	CompositeFilter filter = new CompositeFilter();
	List<OAuth2ClientAuthenticationProcessingFilter> filters = new ArrayList<>();
	filters.add(ssoFilter(github(), "/login/github"));
	filter.setFilters(filters);
	return filter;
}
 
Example #2
Source File: SecurityConfig.java    From springboot-security-wechat with Apache License 2.0 5 votes vote down vote up
@Bean
public Filter ssoFilter() {
    CompositeFilter filter = new CompositeFilter();
    List<Filter> filters = new ArrayList<>();
    filters.add(ssoFilter(wechat(), "/login/wechat"));
    filter.setFilters(filters);
    return filter;
}