dev properties
This commit is contained in:
@@ -17,8 +17,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|||||||
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||||
auth.inMemoryAuthentication()
|
auth.inMemoryAuthentication()
|
||||||
.withUser("adam@mail.com").password("test").roles("USER", "ADMIN").and()
|
.withUser("adam@mail.com").password("test").roles("USER", "ADMIN").and()
|
||||||
.withUser("tilman").password("test").roles("USER", "ADMIN").and()
|
.withUser("betty@mail.com").password("test").roles("USER");
|
||||||
.withUser("anica").password("test").roles("USER");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -26,7 +25,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|||||||
// 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()
|
||||||
// .antMatchers("/console/**").permitAll() // H2 console
|
// .antMatchers("/console/**").permitAll() // H2 console for the dev database
|
||||||
.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
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ spring.datasource.platform=h2
|
|||||||
server.port=8084
|
server.port=8084
|
||||||
|
|
||||||
|
|
||||||
# for production
|
## PRODUCTION SETTINGS
|
||||||
|
#
|
||||||
|
## prevent database schema reset
|
||||||
#spring.jpa.hibernate.ddl-auto=none
|
#spring.jpa.hibernate.ddl-auto=none
|
||||||
#
|
#
|
||||||
|
## production database connection
|
||||||
#spring.datasource.url=jdbc:h2:tcp://localhost/transactions
|
#spring.datasource.url=jdbc:h2:tcp://localhost/transactions
|
||||||
#spring.datasource.username=sa
|
#spring.datasource.username=sa
|
||||||
#spring.datasource.password=PASSWORD
|
#spring.datasource.password=d47gDNi71LeZ85wbnjle
|
||||||
|
|||||||
Reference in New Issue
Block a user