[LOG-427] adding validation-service appconfig
[aai/test-config.git] / validation / appconfig / auth / auth_policy.json
1 {"roles": [
2     {
3         "name": "admin",
4         "functions": [
5             {
6                 "name": "actions",
7                 "methods": [
8                     {"name": "GET"},
9                     {"name": "DELETE"},
10                     {"name": "PUT"}
11                 ]
12             },
13             {
14                 "name": "validate",
15                 "methods": [{"name": "POST"}]
16             }
17         ],
18         "users": [
19             {"username": "CN=common-name, OU=org-unit, O=org, L=location, ST=state, C=US"},
20             {"username": "CN=test, OU=qa, O=Test Ltd, L=London, ST=London, C=GB"}
21         ]
22     },
23     {
24         "name": "ops",
25         "functions": [{
26             "name": "actions",
27             "methods": [{"name": "POST"}]
28         }],
29         "users": [
30             {"username": "CN=common-name, OU=org-unit, O=org, L=location, ST=state, C=US"},
31             {"username": "CN=test, OU=qa, O=Test Ltd, L=London, ST=London, C=GB"}
32         ]
33     },
34     {
35         "name": "basicauth",
36         "functions": [{
37             "name": "util",
38             "methods": [{"name": "GET"}]
39         }],
40         "users": [{
41             "user": "aai",
42             "pass": "OBF:1u2a1t2v1vgb1s3g1s3m1vgj1t3b1u30"
43         }]
44     }
45 ]}