PgRest.Authorization.State (PgRest v0.2.0)

Copy Markdown View Source

Internal authorization data carried by requests and plans, never user context.

Summary

Functions

An authorization state with no restrictions or cached policies.

Types

authorization_node()

@type authorization_node() ::
  {module() | PgRest.Function.t(), [String.t()], Ecto.Query.t() | nil}

t()

@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

empty()

@spec empty() :: t()

An authorization state with no restrictions or cached policies.