Fix logout in sample secure web applications

Fixes gh-1536
This commit is contained in:
Rob Baily
2015-03-25 09:13:07 -04:00
committed by Phillip Webb
parent a36d1e2eed
commit 3c50386970
6 changed files with 13 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ public class SampleWebSecureCustomApplication extends WebMvcConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/css/**").permitAll().anyRequest()
.fullyAuthenticated().and().formLogin().loginPage("/login")
.failureUrl("/login?error").permitAll();
.failureUrl("/login?error").permitAll().and().logout().permitAll();
}
@Override