Add auth_policy.json file 61/41461/1
authorJimmy Forsyth <jf2512@att.com>
Fri, 6 Apr 2018 20:56:53 +0000 (16:56 -0400)
committerJimmy Forsyth <jf2512@att.com>
Fri, 6 Apr 2018 20:56:58 +0000 (16:56 -0400)
Issue-ID: AAI-1006
Change-Id: I2ea87ea8fcfb558477c26c47de0fa865f92932fb
Signed-off-by: Jimmy Forsyth <jf2512@att.com>
babel/appconfig/auth/auth_policy.json [new file with mode: 0644]

diff --git a/babel/appconfig/auth/auth_policy.json b/babel/appconfig/auth/auth_policy.json
new file mode 100644 (file)
index 0000000..5340a6a
--- /dev/null
@@ -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"
+        }]
+    }
+]}