dev properties

This commit is contained in:
2016-07-17 23:33:39 +02:00
parent 8e1ea7fc8f
commit 6dee1bea4a
2 changed files with 7 additions and 6 deletions
@@ -17,8 +17,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("adam@mail.com").password("test").roles("USER", "ADMIN").and()
.withUser("tilman").password("test").roles("USER", "ADMIN").and()
.withUser("anica").password("test").roles("USER");
.withUser("betty@mail.com").password("test").roles("USER");
}
@Override
@@ -26,7 +25,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
// Basis-Schutz: Nur autorisierte Zugriffe (feingranulare Steuerung über Assertions)
http.authorizeRequests()
.antMatchers(HttpMethod.GET, "/public/**").permitAll()
// .antMatchers("/console/**").permitAll() // H2 console
// .antMatchers("/console/**").permitAll() // H2 console for the dev database
.anyRequest().authenticated();
http.httpBasic(); // XXX mit HTTP Basic Auth funktioniert der Logout nicht richtig
+5 -3
View File
@@ -2,10 +2,12 @@ spring.datasource.platform=h2
server.port=8084
# for production
## PRODUCTION SETTINGS
#
## prevent database schema reset
#spring.jpa.hibernate.ddl-auto=none
#
## production database connection
#spring.datasource.url=jdbc:h2:tcp://localhost/transactions
#spring.datasource.username=sa
#spring.datasource.password=PASSWORD
#spring.datasource.password=d47gDNi71LeZ85wbnjle