diff options
author | Manisha Aggarwal <ma9181@att.com> | 2018-04-06 21:01:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-06 21:01:16 +0000 |
commit | 2a03b2ca348da301559f12f2f29c9d9fcb1c682a (patch) | |
tree | f4d5b255ec6af7b81bb414b85ae6dab3bda5ee68 | |
parent | e3ecab31ee6b93c8d07c52faa9e586eee07ef415 (diff) | |
parent | 21ddab54c2eead1f17bd3eaf76b4be5405a364db (diff) |
Merge "Add auth_policy.json file"
-rw-r--r-- | babel/appconfig/auth/auth_policy.json | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/babel/appconfig/auth/auth_policy.json b/babel/appconfig/auth/auth_policy.json new file mode 100644 index 0000000..5340a6a --- /dev/null +++ b/babel/appconfig/auth/auth_policy.json @@ -0,0 +1,47 @@ +{"roles": [ + { + "name": "admin", + "functions": [ + { + "name": "generateArtifacts", + "methods": [{"name": "POST"}] + } + ], + "users": [ + {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"} + ] + }, + { + "name": "ops", + "functions": [{ + "name": "actions", + "methods": [{"name": "POST"}] + }], + "users": [ + {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"} + ] + }, + { + "name": "readonly", + "functions": [ + { + "name": "actions", + "methods": [{"name": "GET"}] + } + ], + "users": [ + {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"} + ] + }, + { + "name": "basicauth", + "functions": [{ + "name": "util", + "methods": [{"name": "GET"}] + }], + "users": [{ + "user": "aai", + "pass": "OBF:deadbeef" + }] + } +]} |