Implements an authorization policy and decides whether an authenticated
ExScim.Scope may perform an action on a resource.
Summary
Callbacks
Returns :ok when scope may perform action on resource, {:error, denial} otherwise.
Types
@type action() :: :read | :create | :update | :delete
Indicate missing scopes or other reason for denying access.
@type resource() ::
:users | :groups | :me | :schemas | :resource_types | :service_provider_config
Callbacks
@callback authorize(scope :: ExScim.Scope.t(), resource(), action()) :: :ok | {:error, denial()}
Returns :ok when scope may perform action on resource, {:error, denial} otherwise.