The declarative authorization plugin offers an authorization mechanism for Ruby inspired by RBAC.
The declarative authorization plugin offers an authorization mechanism for Ruby inspired by RBAC. The most notable distinction to other authorization plugins is the declarative approach. That is, authorization rules are not defined programmatically in between business logic but in an authorization configuration.
Declarative authorization is an example of externalized authorization whereby business logic is cleanly decoupled from authorization logic. The latter can therefore be updated independently.
Declarative authorization benefits include:
- easier to audit
- easier to maintain
Other means to achieve externalized authorization include policy-based xacml.