code maintenance

This commit is contained in:
2016-03-08 22:40:57 +01:00
parent 542d54e420
commit 83685feceb
2 changed files with 7 additions and 3 deletions
@@ -23,9 +23,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
// Basis-Schutz: Nur autorisierte Zugriffe (feingranulare Steuerung über Assertions)
// http.authorizeRequests()
// .antMatchers(HttpMethod.GET, "/public/**").permitAll()
// .anyRequest().authenticated();
http.authorizeRequests()
.antMatchers(HttpMethod.GET, "/public/**").permitAll()
.anyRequest().authenticated();
// http.httpBasic(); // XXX mit HTTP Basic Auth funktioniert der Logout nicht richtig
http.formLogin();