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

  • InMemoryCredentialService

Class InMemoryCredentialServiceExperimental

(Experimental, subject to change) Class for in memory implementation of credential service

Implements

  • BaseCredentialService
  • Defined in core/src/auth/credential_service/in_memory_credential_service.ts:17

Constructors

constructor

  • new InMemoryCredentialService(): InMemoryCredentialService
    Experimental

    Returns InMemoryCredentialService

Methods

loadCredential

  • loadCredential(
        authConfig: AuthConfig,
        toolContext: Context,
    ): Promise<AuthCredential | undefined>
    Experimental

    Loads the credential by auth config and current tool context from the backend credential store.

    Parameters

    • authConfig: AuthConfig

      The auth config which contains the auth scheme and auth credential information. auth_config.get_credential_key will be used to build the key to load the credential.

    • toolContext: Context

      The context of the current invocation when the tool is trying to load the credential.

    Returns Promise<AuthCredential | undefined>

    A promise that resolves to the credential saved in the store.

    Implementation of BaseCredentialService.loadCredential

    • Defined in core/src/auth/credential_service/in_memory_credential_service.ts:34

saveCredential

  • saveCredential(authConfig: AuthConfig, toolContext: Context): Promise<void>
    Experimental

    Parameters

    • authConfig: AuthConfig
    • toolContext: Context

    Returns Promise<void>

    Implementation of BaseCredentialService.saveCredential

    • Defined in core/src/auth/credential_service/in_memory_credential_service.ts:43
Constructors
constructor
Methods
loadCredentialsaveCredential
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.