Spectre.LinkIntent (Spectre v0.3.0)

Copy Markdown View Source

One bounded, explicit attempt to link a destination identity to a Subject.

Only the challenge digest is retained. The one-time challenge is returned to the trusted caller when the intent is opened and must be delivered through the destination channel.

Summary

Types

status()

@type status() :: :pending | :awaiting_source | :committed | :expired | :failed

t()

@type t() :: %Spectre.LinkIntent{
  agent_ref: Spectre.AgentRef.t(),
  attempts_remaining: non_neg_integer(),
  challenge_digest: binary(),
  destination_identity: Spectre.ExternalIdentity.t(),
  expires_at: integer(),
  id: String.t(),
  receipt_ref: String.t() | nil,
  revision: non_neg_integer(),
  source_confirmation?: boolean(),
  source_identity: Spectre.ExternalIdentity.t(),
  status: status(),
  subject: Spectre.Subject.t()
}