Noizu.MCP.Auth.Server.Store.Consent (Noizu MCP v0.1.6)

Copy Markdown View Source

A recorded grant of scope by a subject to a client. Unique on {subject, client_id}; scope is the union granted so far, so a request for a scope outside it re-prompts (the spec's confused-deputy requirement).

Summary

Types

t()

@type t() :: %Noizu.MCP.Auth.Server.Store.Consent{
  client_id: String.t(),
  expires_at: DateTime.t() | nil,
  granted_at: DateTime.t() | nil,
  resource: String.t() | nil,
  scope: [String.t()],
  subject: String.t()
}