gnap-caep-client
    Preparing search index...

    Function validateGrantServerMetadata

    • Validates a GNAP authorization server discovery document (RFC 9635 section 9). grant_request_endpoint is required and, when expectedGrantEndpoint is given, must be that endpoint: a document naming another grant endpoint is a mix-up (section 11.12), as an OpenID Provider's issuer would be.

      Parameters

      • metadata: Record<string, any>
      • OptionalexpectedGrantEndpoint: string

      Returns Record<string, any>

      the same metadata