Skip to content

Commit

Permalink
fix: Add examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
divy9881 committed May 6, 2020
1 parent 72918bc commit 5cf950a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/abac_rule_model.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[request_definition]
r = sub, obj, act

[policy_definition]
p = sub_rule, obj, act

[policy_effect]
e = some(where (p.eft == allow))

[matchers]
m = eval(p.sub_rule) && r.obj == p.obj && r.act == p.act
2 changes: 2 additions & 0 deletions examples/abac_rule_policy.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
p, r.sub.Age > 18, /data1, read
p, r.sub.Age < 60, /data2, write

0 comments on commit 5cf950a

Please sign in to comment.