Rework the authentication 57/6957/2
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Tue, 8 Aug 2017 10:04:02 +0000 (03:04 -0700)
committerSébastien Determe <sd378r@intl.att.com>
Tue, 8 Aug 2017 12:35:14 +0000 (12:35 +0000)
commitb436cd173daa367e15951f0c1f84f8b842a1e347
tree797d9d3d16fdd4c44555c7beebf6b51e15f0603c
parent9a929da8221708f4d4b379af9e2be45a20a4dcd7
Rework the authentication

Add more granularity in the default authentication mechanism
+ Add some unit tests with Json to validate the json decoder

Change-Id: I89d0ef94e99fc8aa0c1e8c6432b5aa30a0a5ac88
Issue-Id: CLAMP-1
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
15 files changed:
src/main/java/org/onap/clamp/clds/config/CldsConfiguration.java
src/main/java/org/onap/clamp/clds/config/CldsSecurityConfig.java
src/main/java/org/onap/clamp/clds/config/CldsUserJsonDecoder.java [new file with mode: 0644]
src/main/java/org/onap/clamp/clds/service/CldsUser.java [new file with mode: 0644]
src/main/java/org/onap/clamp/clds/service/DefaultUserNameHandler.java [new file with mode: 0644]
src/main/java/org/onap/clamp/clds/service/LogServiceImpl.java
src/main/java/org/onap/clamp/clds/service/UserNameHandler.java [new file with mode: 0644]
src/main/java/org/onap/clamp/clds/service/UserService.java [new file with mode: 0644]
src/main/java/org/onap/clamp/clds/service/UserServiceImpl.java [new file with mode: 0644]
src/main/resources/clds/clds-users.json [new file with mode: 0644]
src/main/resources/clds/clds-users.properties [deleted file]
src/test/java/org/onap/clamp/clds/config/CldsUserJsonDecoderTest.java [new file with mode: 0644]
src/test/resources/clds/clds-users-incomplete-permissions.json [new file with mode: 0644]
src/test/resources/clds/clds-users-no-permission.json [new file with mode: 0644]
src/test/resources/clds/clds-users-two-users.json [new file with mode: 0644]