csrf test

This commit is contained in:
DOHA
2016-01-23 20:41:42 +02:00
parent 68469975e3
commit 7653328a2a
6 changed files with 171 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ public class SecurityJavaConfig extends WebSecurityConfigurerAdapter {
.authenticationEntryPoint(restAuthenticationEntryPoint)
.and()
.authorizeRequests()
.antMatchers("/api/**").authenticated()
.antMatchers("/**").authenticated()
.and()
.formLogin()
.successHandler(authenticationSuccessHandler)