@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface WWWAuthenticateChallenge

    Parsed WWW-Authenticate challenge (RFC 9110 §11.6.1, RFC 6750, RFC 9728).

    Only the fields most relevant to OAuth diagnostics are surfaced; unknown auth-params are preserved under params so callers can inspect them.

    interface WWWAuthenticateChallenge {
        scheme: string;
        realm?: string;
        error?: string;
        error_description?: string;
        scope?: string;
        resource_metadata?: string;
        params: Record<string, string>;
    }
    Index

    Properties

    scheme: string

    Auth-scheme token, e.g. "Bearer" or "DPoP". Always lowercased.

    realm?: string

    realm auth-param, if present.

    error?: string

    error auth-param (RFC 6750 §3), e.g. "invalid_token".

    error_description?: string

    error_description auth-param (RFC 6750 §3).

    scope?: string

    scope auth-param (RFC 6750 §3).

    resource_metadata?: string

    resource_metadata auth-param (RFC 9728 §5.3) — URL of the protected-resource metadata document.

    params: Record<string, string>

    All auth-params (lowercased keys), including unknown ones.