Auth Blueprint Module

The auth blueprint module defines three things for every blueprint:

  • Function AccessRules
  • Method accessibility
  • Role Specification

Function AccessRules

Each function is assigned an immutable access rule.

Method Accessibility

Each method is assigned an accessibility rule, of which there are four options:

Accessibility RuleDescription
PublicAnyone can access the method
Outer Object OnlyOnly outer objects may access the method
Role ProtectedOnly callers who have satisfied any role in a given list may access the method
Own Package OnlyOnly the package this method is a part of may access the method

Role Specification

The roles which must be assigned on object instantiated are defined in role specification. Furthermore, roles which may update the rules of other roles must be specified.

For inner blueprints, it is also possible to defer role specification to the outer blueprint.