BAEL-315 reducing the number of users to simplify the code.

This commit is contained in:
Tim Schimandle
2016-10-04 10:05:49 -06:00
parent 61b51e1cf9
commit 72c4fd84d4
9 changed files with 13 additions and 35 deletions
@@ -15,21 +15,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
auth.inMemoryAuthentication()
.withUser("disc_configUser")
.password("configPassword")
.roles("SYSTEM")
.and()
.withUser("disc_discUser")
.withUser("discUser")
.password("discPassword")
.roles("SYSTEM")
.and()
.withUser("disc_gatewayUser")
.password("gatewayPassword")
.roles("SYSTEM")
.and()
.withUser("disc_resourceUser")
.password("resourcePassword")
.roles("SYSTEM")
.and()
.withUser("admin")
.password("password")
@@ -1,4 +1,4 @@
spring.cloud.config.name=discovery
spring.cloud.config.uri=http://localhost:8081
spring.cloud.config.username=config_discUser
spring.cloud.config.password=discPassword
spring.cloud.config.username=configUser
spring.cloud.config.password=configPassword