Defines the strict Auth behaviour for Oban Powertools.
Summary
Callbacks
Returns the stable principal envelope used for durable audit attribution.
Returns an explicit authorization outcome for the actor, action, and resource.
Returns the current actor from the connection or socket.
Functions
Compatibility shim for older mutation services that still accept only an actor id.
Normalizes the stable principal envelope used for durable audit attribution.
Returns the configured host auth module, if any.
Returns the explicit authorization outcome from the configured host auth module. Falls back to the legacy boolean callback when needed.
Compatibility shim for older boolean call sites.
New code should use authorization_outcome/3.
Resolves the current actor through the configured host auth module.
Callbacks
Returns the stable principal envelope used for durable audit attribution.
Returns an explicit authorization outcome for the actor, action, and resource.
@callback current_actor(Plug.Conn.t() | map()) :: any()
Returns the current actor from the connection or socket.
Functions
Compatibility shim for older mutation services that still accept only an actor id.
Normalizes the stable principal envelope used for durable audit attribution.
Returns the configured host auth module, if any.
Returns the explicit authorization outcome from the configured host auth module. Falls back to the legacy boolean callback when needed.
Compatibility shim for older boolean call sites.
New code should use authorization_outcome/3.
Resolves the current actor through the configured host auth module.