SEC-2436: Add @EnableWebMvcSecurity

This commit is contained in:
Rob Winch
2013-12-14 14:39:52 -06:00
parent 053c890a69
commit b7041ed00e
17 changed files with 82 additions and 66 deletions

View File

@@ -25,6 +25,7 @@ import org.springframework.security.config.annotation.authentication.builders.Au
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
import org.springframework.security.web.access.AccessDeniedHandler
import org.springframework.security.web.csrf.CsrfFilter
import org.springframework.security.web.csrf.CsrfTokenRepository
@@ -70,7 +71,7 @@ class CsrfConfigurerTests extends BaseSpringSpec {
}
@Configuration
@EnableWebSecurity
@EnableWebMvcSecurity
static class CsrfAppliedDefaultConfig extends WebSecurityConfigurerAdapter {
@Override