diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-20 10:53:47 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-20 10:53:47 -0600 |
| commit | 319986f9b8df133127f9024eaf77457ecdeff418 (patch) | |
| tree | ec6ee86ec7e31de922128761945add13e271a3f6 /casbin.conf | |
| parent | fc0738269e16bd4ff429c4dbe49a557bc0e7e611 (diff) | |
refactor: rename casbin files
Diffstat (limited to 'casbin.conf')
| -rw-r--r-- | casbin.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/casbin.conf b/casbin.conf new file mode 100644 index 00000000..efe93e0f --- /dev/null +++ b/casbin.conf @@ -0,0 +1,17 @@ +[request_definition] +r = subject, domain, action, object + +[policy_definition] +p = subject, domain, action, object + +[policy_effect] +e = some(where (p.eft == allow)) + +[matchers] +m =\ + (\ + (p.subject == "*" || r.subject == p.subject || regexMatch(r.subject, p.subject))\ + && (p.domain == "*" || r.domain == p.domain)\ + && (p.action == "*" || regexMatch(r.action, p.action))\ + && keyMatch(r.object, p.object)\ + ) |
