Rajska.Authorization behaviour (Rajska v1.3.2) View Source
Behaviour of an Authorization module.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Specs
Specs
context_user_authorized?(context(), scoped_struct(), rule()) :: boolean()
Specs
get_current_user(context()) :: current_user()
Specs
Specs
get_user_role(current_user()) :: role()
Specs
has_user_access?(current_user(), scoped_struct(), rule()) :: boolean()
Specs
not_scoped_roles() :: [role()]
Specs
role_authorized?(current_user_role(), allowed_role :: role()) :: boolean()
Specs
unauthorized_field_message(resolution :: Absinthe.Resolution.t(), atom()) :: String.t()
Specs
unauthorized_message(resolution :: Absinthe.Resolution.t()) :: String.t() | map() | list()
Specs
unauthorized_object_message( resolution :: Absinthe.Resolution.t(), Absinthe.Type.Object.t() ) :: String.t()
Specs
Specs
unauthorized_query_scope_message(resolution :: Absinthe.Resolution.t(), atom()) :: String.t()