-
Notifications
You must be signed in to change notification settings - Fork 0
Home
skreem edited this page Feb 19, 2017
·
2 revisions
Welcome to the scram wiki!
Scram is a flexible authorization system which is based on a hierarchy representing abilities to perform actions.
-
Holder
: This is a module representing anything which can holdPolicies
. We leave a group system (or having individual users contain policies) up to the user of Scram. -
Policy
: A policy groups together manyTargets
-
Target
: Defines a list of actions which can be performed in the context of the Policy model (if applicable). Uses a hash of conditions with keys of comparators and values of hashes representing fields and compare values. Allows special values like@holder
to compare against the current holder. Keys can point to model-defined conditions by prefixing keys with@
.