Insider.Policy.Grant (Insider v0.1.0)

Copy Markdown View Source

A pre-verified authorization grant. Cryptographic verification is deliberately external.

Summary

Types

t()

@type t() :: %Insider.Policy.Grant{
  audit_id: String.t(),
  expires_at_monotonic: integer(),
  owner_id: String.t() | nil,
  reference: String.t(),
  scopes: [String.t()],
  target: %{node: String.t()}
}

Functions

new(options)

@spec new(keyword()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}