Repository navigation
Release v22.181.0
Policies can now decide from state the application has recorded, such as the plan of the asset a command acts on.
Added
StateAwareAuthorizationPolicy<TState>base class: implementGetKey,ReadandDecideand register it as a named policy. It fails closed: no key, no recorded state, a failed read and a rejecting decision all deny without throwing, andOnDeniedreports aStateDenialReasonso a denial stays distinguishable from an exception. (part of Cratis/StudioIssues#1387)- Documentation of the pattern, including that the read is an admission check that does not enrol in decision reads and does not revoke granted access.