Search in sources :

Example 1 with AlertFilterChainProxy

use of com.synopsys.integration.alert.component.authentication.security.saml.AlertFilterChainProxy in project hub-alert by blackducksoftware.

the class AuthenticationHandler method samlFilter.

@Bean
public FilterChainProxy samlFilter() throws Exception {
    List<SecurityFilterChain> chains = new ArrayList<>();
    chains.add(new DefaultSecurityFilterChain(new AntPathRequestMatcher("/saml/login/**"), samlEntryPoint()));
    chains.add(new DefaultSecurityFilterChain(new AntPathRequestMatcher("/saml/SSO/**"), samlWebSSOProcessingFilter()));
    chains.add(new DefaultSecurityFilterChain(new AntPathRequestMatcher("/saml/logout/**"), samlLogoutFilter()));
    chains.add(new DefaultSecurityFilterChain(new AntPathRequestMatcher("/saml/SingleLogout/**"), samlLogoutProcessingFilter()));
    return new AlertFilterChainProxy(chains, samlContext());
}
Also used : DefaultSecurityFilterChain(org.springframework.security.web.DefaultSecurityFilterChain) SecurityFilterChain(org.springframework.security.web.SecurityFilterChain) ArrayList(java.util.ArrayList) AntPathRequestMatcher(org.springframework.security.web.util.matcher.AntPathRequestMatcher) AlertFilterChainProxy(com.synopsys.integration.alert.component.authentication.security.saml.AlertFilterChainProxy) DefaultSecurityFilterChain(org.springframework.security.web.DefaultSecurityFilterChain) Bean(org.springframework.context.annotation.Bean)

Aggregations

AlertFilterChainProxy (com.synopsys.integration.alert.component.authentication.security.saml.AlertFilterChainProxy)1 ArrayList (java.util.ArrayList)1 Bean (org.springframework.context.annotation.Bean)1 DefaultSecurityFilterChain (org.springframework.security.web.DefaultSecurityFilterChain)1 SecurityFilterChain (org.springframework.security.web.SecurityFilterChain)1 AntPathRequestMatcher (org.springframework.security.web.util.matcher.AntPathRequestMatcher)1