diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-08-08 03:04:02 -0700 |
---|---|---|
committer | Sébastien Determe <sd378r@intl.att.com> | 2017-08-08 12:35:14 +0000 |
commit | b436cd173daa367e15951f0c1f84f8b842a1e347 (patch) | |
tree | 797d9d3d16fdd4c44555c7beebf6b51e15f0603c /src/main/resources | |
parent | 9a929da8221708f4d4b379af9e2be45a20a4dcd7 (diff) |
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>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/clds/clds-users.json | 15 | ||||
-rw-r--r-- | src/main/resources/clds/clds-users.properties | 7 |
2 files changed, 15 insertions, 7 deletions
diff --git a/src/main/resources/clds/clds-users.json b/src/main/resources/clds/clds-users.json new file mode 100644 index 00000000..b569f9d3 --- /dev/null +++ b/src/main/resources/clds/clds-users.json @@ -0,0 +1,15 @@ + [{ + "user":"admin", + "password":"5f4dcc3b5aa765d61d8327deb882cf99", + "permissions": + [ + "permission-type-cl|dev|read", + "permission-type-cl|dev|update", + "permission-type-cl-manage|dev|*", + "permission-type-filter-vf|dev|*", + "permission-type-template|dev|read", + "permission-type-template|dev|update" + ] + } + +]
\ No newline at end of file diff --git a/src/main/resources/clds/clds-users.properties b/src/main/resources/clds/clds-users.properties deleted file mode 100644 index f4b11e82..00000000 --- a/src/main/resources/clds/clds-users.properties +++ /dev/null @@ -1,7 +0,0 @@ -# Please define the CLDS users here -# The format is <username>|<password>|<role> -# Two types of roles are used:read, all -# - read: can only read template and closed loop design -# - all: can read and update template and closed loop related design -# -user|password|all
\ No newline at end of file |