Instantiates an ExternalAccountAuthorizedUserClient instances using the provided JSON object loaded from a credentials files. An error is throws if the credential is not valid.
The external account authorized user option object typically from the external accoutn authorized user JSON credential file.
DEPRECATED, all options are available in the
options
parameter. Optional additional behavior customization options.
These currently customize expiration threshold time and whether to retry
on 401/403 API request errors.
The quota project ID. The quota project can be used by client libraries for the billing purpose. See Working with quotas
A promise that resolves with the current GCP access token response. If the current credential is expired, a new one is retrieved.
The main authentication interface. It takes an optional url which when present is the endpoint being accessed, and returns a Promise which resolves with authorization header fields.
The result has the form:
{ Authorization: 'Bearer
Subscribes a listener to the tokens event triggered when a token is generated.
Provides an alternative Gaxios request implementation with auth credentials
Sets the auth credentials.
External Account Authorized User Client. This is used for OAuth2 credentials sourced using external identities through Workforce Identity Federation. Obtaining the initial access and refresh token can be done through the Google Cloud CLI.