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
+4
View File
@@ -1,3 +1,7 @@
Aloha, funky time! Aloha, funky time!
curl -i http://localhost:8080/transactions
curl -i http://localhost:8080/transactions/1
curl -i -X POST -H "Content-Type:application/json" -d '{"account":"http://localhost:8080/accounts/1","amount":12.3,"date":"2016-05-31T22:00:00.000+0000","description":"test","category":"http://localhost:8080/categories/1"}' http://localhost:8080/transactions curl -i -X POST -H "Content-Type:application/json" -d '{"account":"http://localhost:8080/accounts/1","amount":12.3,"date":"2016-05-31T22:00:00.000+0000","description":"test","category":"http://localhost:8080/categories/1"}' http://localhost:8080/transactions
@@ -23,9 +23,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
// Basis-Schutz: Nur autorisierte Zugriffe (feingranulare Steuerung über Assertions) // Basis-Schutz: Nur autorisierte Zugriffe (feingranulare Steuerung über Assertions)
// http.authorizeRequests() http.authorizeRequests()
// .antMatchers(HttpMethod.GET, "/public/**").permitAll() .antMatchers(HttpMethod.GET, "/public/**").permitAll()
// .anyRequest().authenticated(); .anyRequest().authenticated();
// http.httpBasic(); // XXX mit HTTP Basic Auth funktioniert der Logout nicht richtig // http.httpBasic(); // XXX mit HTTP Basic Auth funktioniert der Logout nicht richtig
http.formLogin(); http.formLogin();