GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — credentialToParam | ADK for TypeScript: API Reference - v2.5.0

  • credentialToParam

Function credentialToParam

  • credentialToParam(
        authScheme: AuthScheme,
        authCredential?: AuthCredential,
    ): [ApiParameter | undefined, Record<string, string> | undefined]

    Converts a scheme and credential into the tool parameter that carries the credential, plus the value to send for it.

    Service-account, OAuth2, and OpenID Connect credentials reach this function already exchanged for a bearer token, so they take the HTTP branch.

    Parameters

    • authScheme: AuthScheme

      The auth scheme.

    • OptionalauthCredential: AuthCredential

      The auth credential.

    Returns [ApiParameter | undefined, Record<string, string> | undefined]

    A [parameter, values] pair, both undefined when the credential carries nothing to send.

    Throws

    Error For basic authentication, which is not supported, and for a scheme and credential combination that cannot be expressed as a parameter.

    • Defined in core/src/tools/openapi_tool/auth/auth_helpers.ts:485
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.