Skip to content
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 hold Policies. We leave a group system (or having individual users contain policies) up to the user of Scram.
  • Policy: A policy groups together many Targets
  • 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 @.
Clone this wiki locally