added authorization policy & framework

This commit is contained in:
Senad Uka
2018-04-26 10:13:46 +02:00
parent 99c10b75fb
commit 654e8a5817
6 changed files with 133 additions and 14 deletions

27
authorization_policy.csv Normal file
View File

@@ -0,0 +1,27 @@
p, *, *, *, *, /v1/authenticate/portal, POST
p, *, *, *, *, /health/, GET
p, *, *, *, [self], /v1/users/*/, GET
p, *, *, *, [self], /v1/users/portal/*, DELETE
p, *, *, *, [self], /v1/users/portal/*, POST
p, *, *, *, [self], /v1/users/portal/*, GET
p, *AD, *, *, *, /v1/users/, GET
p, BDCAD, BCBSIAD, *, [other], /v1/users/*/, GET
p, BDCAD, BCBSIAD, *, [other], /v1/users/portal/*, DELETE
p, BDCAD, BCBSIAD, *, [other], /v1/users/portal/*, POST
p, BDCAD, BCBSIAD, *, [other], /v1/users/portal/*, GET
p, BDCAD, PLANAD, *, [other], /v1/users/*/, GET
p, BDCAD, PLANAD, *, [other], /v1/users/portal/*, DELETE
p, BDCAD, PLANAD, *, [other], /v1/users/portal/*, POST
p, BDCAD, PLANAD, *, [other], /v1/users/portal/*, GET
p, BCBSIAD, SP, *, [other], /v1/users/*/, GET
p, BCBSIAD, SP, *, [other], /v1/users/portal/*, DELETE
p, BCBSIAD, SP, *, [other], /v1/users/portal/*, POST
p, BCBSIAD, SP, *, [other], /v1/users/portal/*, GET
p, BCBSIAD, US, *, [other], /v1/users/*/, GET
p, BCBSIAD, US, *, [other], /v1/users/portal/*, DELETE
p, BCBSIAD, US, *, [other], /v1/users/portal/*, POST
p, BCBSIAD, US, *, [other], /v1/users/portal/*, GET
p, PLANAD, US, [equal], [other], /v1/users/*/, GET
p, PLANAD, US, [equal], [other], /v1/users/portal/*, DELETE
p, PLANAD, US, [equal], [other], /v1/users/portal/*, POST
p, PLANAD, US, [equal], [other], /v1/users/portal/*, GET
1 p * * * * /v1/authenticate/portal POST
2 p * * * * /health/ GET
3 p * * * [self] /v1/users/*/ GET
4 p * * * [self] /v1/users/portal/* DELETE
5 p * * * [self] /v1/users/portal/* POST
6 p * * * [self] /v1/users/portal/* GET
7 p *AD * * * /v1/users/ GET
8 p BDCAD BCBSIAD * [other] /v1/users/*/ GET
9 p BDCAD BCBSIAD * [other] /v1/users/portal/* DELETE
10 p BDCAD BCBSIAD * [other] /v1/users/portal/* POST
11 p BDCAD BCBSIAD * [other] /v1/users/portal/* GET
12 p BDCAD PLANAD * [other] /v1/users/*/ GET
13 p BDCAD PLANAD * [other] /v1/users/portal/* DELETE
14 p BDCAD PLANAD * [other] /v1/users/portal/* POST
15 p BDCAD PLANAD * [other] /v1/users/portal/* GET
16 p BCBSIAD SP * [other] /v1/users/*/ GET
17 p BCBSIAD SP * [other] /v1/users/portal/* DELETE
18 p BCBSIAD SP * [other] /v1/users/portal/* POST
19 p BCBSIAD SP * [other] /v1/users/portal/* GET
20 p BCBSIAD US * [other] /v1/users/*/ GET
21 p BCBSIAD US * [other] /v1/users/portal/* DELETE
22 p BCBSIAD US * [other] /v1/users/portal/* POST
23 p BCBSIAD US * [other] /v1/users/portal/* GET
24 p PLANAD US [equal] [other] /v1/users/*/ GET
25 p PLANAD US [equal] [other] /v1/users/portal/* DELETE
26 p PLANAD US [equal] [other] /v1/users/portal/* POST
27 p PLANAD US [equal] [other] /v1/users/portal/* GET