Internal authorization data carried by requests and plans, never user context.
Summary
Types
@type authorization_node() :: {module() | PgRest.Function.t(), [String.t()], Ecto.Query.t() | nil}
@type t() :: %PgRest.Authorization.State{ hook?: boolean(), nodes: [authorization_node()], payload_columns: :all | MapSet.t(String.t()), policies: map(), read_check: Ecto.Query.t() | nil, source_query: Ecto.Query.t() | nil, write_check: Ecto.Query.t() | nil }
Functions
@spec empty() :: t()
An authorization state with no restrictions or cached policies.