@modelcontextprotocol/sdk
    Preparing search index...

    Function selectClientAuthMethod

    • Determines the best client authentication method to use based on server support and client configuration.

      Priority order (highest to lowest):

      1. client_secret_basic (if client secret is available)
      2. client_secret_post (if client secret is available)
      3. none (for public clients)

      Parameters

      • clientInformation: OAuthClientInformationMixed

        OAuth client information containing credentials

      • supportedMethods: string[]

        Authentication methods supported by the authorization server

      Returns ClientAuthMethod

      The selected authentication method