Skip to content

Instantly share code, notes, and snippets.

@sw-samuraj
Last active January 4, 2018 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sw-samuraj/70dbf0547a194df313430ca9ec2a6b72 to your computer and use it in GitHub Desktop.
Save sw-samuraj/70dbf0547a194df313430ca9ec2a6b72 to your computer and use it in GitHub Desktop.
@Bean
public FilterChainProxy samlFilter() throws Exception {
List<SecurityFilterChain> chains = new ArrayList<SecurityFilterChain>();
chains.add(new DefaultSecurityFilterChain(
new AntPathRequestMatcher("/saml/metadata/**"), metadataDisplayFilter()));
return new FilterChainProxy(chains);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment