From 4c31f0f86e92fad17f77b4f3f6769799b4c880c4 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Fri, 5 Jul 2019 09:37:11 +0200 Subject: [PATCH] :lock: : add sample user account for tests --- src/main/java/io/codeka/gaia/config/SecurityConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/codeka/gaia/config/SecurityConfig.java b/src/main/java/io/codeka/gaia/config/SecurityConfig.java index bca9bc4d7..a16835338 100644 --- a/src/main/java/io/codeka/gaia/config/SecurityConfig.java +++ b/src/main/java/io/codeka/gaia/config/SecurityConfig.java @@ -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){