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 — BaseAuthCredentialExchanger | ADK for TypeScript: API Reference - v2.5.0

  • BaseAuthCredentialExchanger

Class BaseAuthCredentialExchanger

Base class for authentication credential exchangers.

A subclass exchanges the credential an OpenAPI tool was configured with for one that can be sent to the API. The base implementation always throws, so a subclass that forgets to override the method fails on the first call rather than silently returning nothing.

  • Defined in core/src/tools/openapi_tool/auth/credential_exchangers/base_auth_credential_exchanger.ts:30

Constructors

constructor

  • new BaseAuthCredentialExchanger(): BaseAuthCredentialExchanger

    Returns BaseAuthCredentialExchanger

Methods

exchangeCredential

  • exchangeCredential(
        _authScheme: AuthScheme,
        _authCredential?: AuthCredential,
    ): AuthCredential

    Exchanges the provided authentication credential for a usable token or credential.

    Parameters

    • _authScheme: AuthScheme

      The security scheme.

    • Optional_authCredential: AuthCredential

      The authentication credential.

    Returns AuthCredential

    An updated AuthCredential object containing the fetched credential. For simple schemes like API key, it may return the original credential if no exchange is needed.

    Throws

    If the method is not implemented by a subclass.

    • Defined in core/src/tools/openapi_tool/auth/credential_exchangers/base_auth_credential_exchanger.ts:43
Constructors
constructor
Methods
exchangeCredential
You are visitor 01402775 — 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.