Wanderland

Wanderland Core: Authorization

Scope-based authorization. The capability model with two axes: roles (ceiling) and scopes (floor).

The Model

The Check

required.all? { |s| held.include?(s) }

The caller must hold every required scope. Having :read but missing :sign when both are required is a denial. Any gap raises Authorization::Denied with both lists for audit.

Every authorization check — granted or denied — is recorded on the active trace span.

Source File

wanderland-core/lib/wanderland/authorization.rb