Last active
January 29, 2018 09:44
-
-
Save sw-samuraj/c433dd8e72e843472359c96e32d6b44f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public FilterChainProxy samlFilter() throws Exception { | |
List<SecurityFilterChain> chains = new ArrayList<SecurityFilterChain>(); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/login/**"), | |
samlEntryPoint())); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/logout/**"), | |
samlLogoutFilter())); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/metadata/**"), | |
metadataDisplayFilter())); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/SSO/**"), | |
samlWebSSOProcessingFilter())); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/SingleLogout/**"), | |
samlLogoutProcessingFilter())); | |
return new FilterChainProxy(chains); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment