Incorporate the ECOMP SDC Artefact Generator code
[aai/babel.git] / appconfig-local / auth / auth_policy.json
1 {"roles": [
2     {
3         "name": "admin",
4         "functions": [
5             {
6                 "name": "generateArtifacts",
7                 "methods": [{"name": "POST"}]
8             }
9         ],
10         "users": [
11             {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"}
12         ]
13     },
14     {
15         "name": "ops",
16         "functions": [{
17             "name": "actions",
18             "methods": [{"name": "POST"}]
19         }],
20         "users": [
21             {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"}
22         ]
23     },
24     {
25         "name": "readonly",
26         "functions": [
27             {
28                 "name": "actions",
29                 "methods": [{"name": "GET"}]
30             }
31         ],
32         "users": [
33             {"username": "CN=someone.onap.org, OU=someone, O=\"ONAP ORG\", L=NA, ST=NA, C=NA"}
34         ]
35     },
36     {
37         "name": "basicauth",
38         "functions": [{
39             "name": "util",
40             "methods": [{"name": "GET"}]
41         }],
42         "users": [{
43             "user": "aai",
44             "pass": "OBF:deadbeef"
45         }]
46     }
47 ]}