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

View File

@@ -14,16 +14,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
auth.inMemoryAuthentication()
.withUser("config_discUser")
.password("discPassword")
.roles("SYSTEM")
.and()
.withUser("config_gatewayUser")
.password("gatewayPassword")
.roles("SYSTEM")
.and()
.withUser("config_resourceUser")
.password("resourcePassword")
.withUser("configUser")
.password("configPassword")
.roles("SYSTEM");
}

View File

@@ -5,4 +5,4 @@ spring.cloud.config.server.git.uri=file:///${user.home}/application-config
eureka.client.region = default
eureka.client.registryFetchIntervalSeconds = 5
eureka.client.serviceUrl.defaultZone=http://disc_configUser:configPassword@localhost:8082/eureka/
eureka.client.serviceUrl.defaultZone=http://discUser:discPassword@localhost:8082/eureka/