AttestoClient.MCPAuthorization.Registration (AttestoClient v2.26.0)

Copy Markdown View Source

Client registration selected for one MCP authorization server.

Pre-registered and user-entered credentials are bound to the exact issuer that issued them. A Client ID Metadata Document registration is portable, but is used at another issuer only when that authorization server advertises CIMD support.

The struct may contain a client secret or private signing key in :client_auth. Its Inspect implementation omits that field. Applications that persist it must protect it as a credential.

Summary

Types

source()

@type source() :: :pre_registered | :client_id_metadata | :user | :dynamic

t()

@type t() :: %AttestoClient.MCPAuthorization.Registration{
  client_auth: term(),
  client_id: String.t(),
  issuer: String.t(),
  metadata: map() | nil,
  source: source()
}