auth.provider API
    Preparing search index...

    Function buildDiscoveryDocument

    • Aggregate every module's OidcDiscoveryContribution into the single OIDC discovery document.

      The aggregator owns issuer (trailing-slash-normalized) and id_token_signing_alg_values_supported (from the keyStore). Module contributions supply issuer-relative endpoints (prefixed with the issuer here) and literal metadata (arrays concatenated + de-duplicated; scalars must agree). Conflicting values, reserved-field contributions, non-absolute endpoint paths, and a document missing any OIDC-required field all throw DiscoveryDocumentError — surfaced as a boot error so misconfiguration fails fast rather than serving a malformed document.

      Items are processed in caller-supplied (module-registration) order, so the output is deterministic.

      Parameters

      Returns Record<string, unknown>