Class: Reeve::Authorization::Authorizer
- Inherits:
-
Object
- Object
- Reeve::Authorization::Authorizer
- Defined in:
- lib/reeve/authorization/authorizer.rb
Overview
The envelope's authorizer collaborator: turns a guard declaration plus a principal
into a Decision, through whichever adapter the policy speaks.
It deliberately does not rescue. The envelope converts a raising policy into
policy_error and fails closed; swallowing it here would hide which policy broke.