AttestoPhoenix.AuthorizationServer.Metadata (AttestoPhoenix v2.7.0)

Copy Markdown View Source

Shared host metadata for the RFC 8414 and OpenID Provider documents.

The core Attesto.Discovery and Attesto.OpenIDDiscovery builders remain separate because their required fields differ. This module owns the Phoenix-side capability and endpoint values that both documents advertise, so those values have one source of truth.

Summary

Functions

Add the metadata fields shared by both discovery documents.

Functions

enrich_common(metadata, config)

@spec enrich_common(map(), AttestoPhoenix.Config.t()) :: map()

Add the metadata fields shared by both discovery documents.

The optional :signing_alg_values option is available for a caller whose base document derives its own signing-algorithm list. When omitted, the OpenID base map is preferred, then the configured keystore is consulted; this preserves the distinct fallback behavior of the two core builders.

enrich_common(metadata, config, opts)

@spec enrich_common(map(), AttestoPhoenix.Config.t(), keyword()) :: map()