aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/auth/auth_policy.json
blob: a0496b76b03b59963454908d9252d357e4aa5aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{"roles": [
    {
        "name": "admin",
        "functions": [
            {
                "name": "actions",
                "methods": [
                    {"name": "GET"},
                    {"name": "DELETE"},
                    {"name": "PUT"}
                ]
            },
            {
                "name": "getAndPublish",
                "methods": [{"name": "POST"}]
            }
        ],
        "users": [
            {"username": "CN=common-name, OU=org-unit, O=org, L=location, ST=state, C=US"},
            {"username": "CN=test, OU=qa, O=Test Ltd, L=London, ST=London, C=GB"}
        ]
    },
    {
        "name": "ops",
        "functions": [{
            "name": "actions",
            "methods": [{"name": "POST"}]
        }],
        "users": [
            {"username": "CN=common-name, OU=org-unit, O=org, L=location, ST=state, C=US"},
            {"username": "CN=test, OU=qa, O=Test Ltd, L=London, ST=London, C=GB"}
        ]
    },
    {
        "name": "basicauth",
        "functions": [{
            "name": "util",
            "methods": [{"name": "GET"}]
        }],
        "users": [{
            "user": "aai",
            "pass": "OBF:1u2a1t2v1vgb1s3g1s3m1vgj1t3b1u30"
        }]
    },
    {
        "name": "nofuncauth",
        "functions": [{
            "name": "nofuncutil"
        }],        
        "users": [{
            "user": "aai",
            "pass": "OBF:1u2a1t2v1vgb1s3g1s3m1vgj1t3b1u30"
        }]
    }    
]}