File tree Expand file tree Collapse file tree 3 files changed +6
-24
lines changed
Expand file tree Collapse file tree 3 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -610,14 +610,10 @@ OPA needs to respond with the list of groups as follows:
610610
611611``` json
612612{
613- "result" : {
614- "groups" : {
615- "groups" : [
616- " admin" ,
617- " developers"
618- ]
619- }
620- }
613+ "result" : [
614+ " admin" ,
615+ " developers"
616+ ]
621617}
622618```
623619
Original file line number Diff line number Diff line change @@ -12,14 +12,7 @@ allow if {
1212 action_sufficient_for_operation (acl.action, input.operationName)
1313}
1414
15- # HDFS group mapper
16- # This will return the group data in this form:
17- # "result": {
18- # "groups": [
19- # "admin",
20- # "developers"
21- # ]
22- # ...
15+ # HDFS group mapper (this returns a list of strings)
2316groups := {group |
2417 raw = groups_for_user[input.username][_]
2518 # Keycloak groups have trailing slashes
Original file line number Diff line number Diff line change 2121 action_sufficient_for_operation(acl.action, input.operationName)
2222 }
2323
24- # HDFS group mapper
25- # This will return the group data in this form:
26- # "result": {
27- # "groups": [
28- # "admin",
29- # "developers"
30- # ]
31- # ...
24+ # HDFS group mapper (this returns a list of strings)
3225 groups := {group |
3326 raw = groups_for_user[input.username][_]
3427 # Keycloak groups have trailing slashes
You can’t perform that action at this time.
0 commit comments