BAEL-315 reducing the number of users to simplify the code.
This commit is contained in:
+1
-13
@@ -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")
|
||||
|
||||
+2
-2
@@ -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
|
||||
Reference in New Issue
Block a user