summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Forsyth <jf2512@att.com>2018-04-06 16:56:53 -0400
committerJimmy Forsyth <jf2512@att.com>2018-04-06 16:56:58 -0400
commit21ddab54c2eead1f17bd3eaf76b4be5405a364db (patch)
tree51cc90938180e0294c4015b911cc02896ad59d3b
parent91148047a8b44c759c3ae93cd836174897d84fb3 (diff)
Add auth_policy.json file
Issue-ID: AAI-1006 Change-Id: I2ea87ea8fcfb558477c26c47de0fa865f92932fb Signed-off-by: Jimmy Forsyth <jf2512@att.com>
-rw-r--r--babel/appconfig/auth/auth_policy.json47
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"
+ }]
+ }
+]}