Closed bostone closed 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:
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
saml()
http.authorizeRequests() .antMatchers("/saml/**").permitAll() .anyRequest().authenticated() .and() .apply(saml())
You need:
import static org.springframework.security.extensions.saml2.config.SAMLConfigurer.saml;
Obviously! Thanks!
Not sure what I'm missing but
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
does not havesaml()
method as far as I can tell so I end up with compilation error when trying to plug in this code: