Spectre.SubjectLink (Spectre v0.3.0)

Copy Markdown View Source

Explicit, auditable association between a Subject and an external identity.

Revocation stops future resolution through the identity but never deletes the Subject or its Agent Instance state.

Summary

Types

t()

@type t() :: %Spectre.SubjectLink{
  agent_ref: Spectre.AgentRef.t(),
  committed_at: integer(),
  external_identity: Spectre.ExternalIdentity.t(),
  id: String.t(),
  metadata: map(),
  receipt_ref: String.t(),
  revision: pos_integer(),
  revoked_at: integer() | nil,
  status: :active | :revoked,
  subject: Spectre.Subject.t()
}