ash v1.29.0-rc1 Ash.Authorizer behaviour View Source
The interface for an ash authorizer
These will typically be implemented by an extension, but a custom
one can be implemented by defining a module that adopts this behaviour
and using @authorizers YourAuthorizer
to your resource.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this section Callbacks
Specs
check(state(), context()) :: :authorized | {:data, [Ash.record()]} | {:error, Ash.error()}
Specs
Specs
initial_state(Ash.resource(), Ash.actor(), Ash.action(), boolean()) :: state()