Public entry point for SCIM authorization decisions.
Delegates to the configured authorization_adapter (see ExScim.Authorization.Adapter).
When no adapter is configured, ExScim.Authorization.DefaultPolicy is used.
Summary
Functions
Returns the configured authorization adapter module.
Returns :ok when scope may perform action on resource, {:error, denial} otherwise.
Formats a denial as a human-readable error detail.
Functions
@spec adapter() :: module()
Returns the configured authorization adapter module.
@spec authorize( ExScim.Scope.t(), ExScim.Authorization.Adapter.resource(), ExScim.Authorization.Adapter.action() ) :: :ok | {:error, ExScim.Authorization.Adapter.denial()}
Returns :ok when scope may perform action on resource, {:error, denial} otherwise.
@spec denial_detail(ExScim.Authorization.Adapter.denial()) :: String.t()
Formats a denial as a human-readable error detail.