You may implement ServiceAccountTokenProvider interface to securely obtain service account token when using OKE workload identity. ServiceAccountTokenProvider may be set as serviceAccountTokenProvider of IAMConfig. Instead of a class implementing this interface, you may also set serviceAccountTokenProvider to a function with the signature of loadServiceAccountToken.

See

Hierarchy

  • ServiceAccountTokenProvider

Methods

  • Asynchronously load service account token.

    Async

    Returns

    Promise resolved with a string service account token or rejected with an error

    Returns Promise<string>

Generated using TypeDoc