View Source Ash.Authorizer behaviour (ash v2.0.0-rc.13)
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 Callbacks
@callback check(state(), context()) :: :authorized | {:data, [Ash.Resource.record()]} | {:error, term()}
@callback initial_state( Ash.Resource.t(), Ash.Resource.record(), Ash.Resource.Actions.action(), boolean() ) :: state()