spring-attic / spring-security-saml-dsl

Spring security okta dsl.
MIT License
43 stars 61 forks source link

Missing saml() method #43

Closed bostone closed 7 years ago

bostone commented 7 years ago

Not sure what I'm missing but org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter does not have saml() method as far as I can tell so I end up with compilation error when trying to plug in this code:

http.authorizeRequests()
    .antMatchers("/saml/**").permitAll()
    .anyRequest().authenticated()
    .and()
    .apply(saml())
mraible commented 7 years ago

You need:

import static org.springframework.security.extensions.saml2.config.SAMLConfigurer.saml;
bostone commented 7 years ago

Obviously! Thanks!