diff options
author | 2019-08-08 15:57:14 +0000 | |
---|---|---|
committer | 2019-08-08 15:57:30 +0000 | |
commit | c44a753af3693cc67de62f8fea2c93cf17c070dc (patch) | |
tree | 355bf85f70c168633c6437c70346266208ed0b85 /plans/so/integration-etsi-testing/so-simulators/common/src | |
parent | 1b878eb83fa02ce13c3391ba2ccdaba42111e667 (diff) |
Adding correct user in aai simulator
Plus Fixing belows issues
- NullpointerException in aai simulator
- Service Type update in catalogdb
- OutputRequest format in sdnc simulator
Change-Id: I87c8b814e93cf9bc83b62e90b868c603a15a5560
Issue-ID: SO-1953
Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
Diffstat (limited to 'plans/so/integration-etsi-testing/so-simulators/common/src')
-rw-r--r-- | plans/so/integration-etsi-testing/so-simulators/common/src/main/java/org/onap/so/simulator/configuration/SimulatorSecurityConfigurer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plans/so/integration-etsi-testing/so-simulators/common/src/main/java/org/onap/so/simulator/configuration/SimulatorSecurityConfigurer.java b/plans/so/integration-etsi-testing/so-simulators/common/src/main/java/org/onap/so/simulator/configuration/SimulatorSecurityConfigurer.java index d2cf0049..5d59cbbd 100644 --- a/plans/so/integration-etsi-testing/so-simulators/common/src/main/java/org/onap/so/simulator/configuration/SimulatorSecurityConfigurer.java +++ b/plans/so/integration-etsi-testing/so-simulators/common/src/main/java/org/onap/so/simulator/configuration/SimulatorSecurityConfigurer.java @@ -21,6 +21,8 @@ package org.onap.so.simulator.configuration; import java.util.List; import org.onap.so.simulator.model.User; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; @@ -33,6 +35,8 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; * */ public abstract class SimulatorSecurityConfigurer extends WebSecurityConfigurerAdapter { + private static final Logger LOGGER = LoggerFactory.getLogger(SimulatorSecurityConfigurer.class); + private final List<User> users; @@ -51,6 +55,7 @@ public abstract class SimulatorSecurityConfigurer extends WebSecurityConfigurerA auth.inMemoryAuthentication().passwordEncoder(passwordEncoder()); for (int index = 0; index < users.size(); index++) { final User user = users.get(index); + LOGGER.info("Adding {} to InMemoryUserDetailsManager ...", user); inMemoryAuthentication.withUser(user.getUsername()).password(user.getPassword()).roles(user.getRole()); if (index < users.size()) { inMemoryAuthentication.and(); |