Skip to content

Commit

Permalink
🔒 : add sample user account for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Jul 5, 2019
1 parent 8141037 commit 4c31f0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/codeka/gaia/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public void configure(AuthenticationManagerBuilder auth) throws Exception {
// configure default admin user
auth
.inMemoryAuthentication()
.withUser("admin").password(bcrypt().encode("admin123")).authorities("ROLE_ADMIN");
.withUser("admin").password(bcrypt().encode("admin123")).authorities("ROLE_ADMIN")
.and()
.withUser("user").password(bcrypt().encode("user123")).authorities("ROLE_USER");

// configure ldap auth if needed
if(ldapEnabled){
Expand Down

0 comments on commit 4c31f0f

Please sign in to comment.