From: Manisha Aggarwal Date: Fri, 6 Apr 2018 21:01:16 +0000 (+0000) Subject: Merge "Add auth_policy.json file" X-Git-Tag: 2.0.0-ONAP~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Ftest-config.git;a=commitdiff_plain;h=2a03b2ca348da301559f12f2f29c9d9fcb1c682a;hp=e3ecab31ee6b93c8d07c52faa9e586eee07ef415 Merge "Add auth_policy.json file" --- 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" + }] + } +]}