Expand description
Credentials: where the access token each call is sent with comes from.
Structs§
- Access
Token - An access token, sent as it is. It is not renewed: a service account’s lives five minutes.
- CliSession
- The session the
originCLI stored at its last login, renewed from its refresh token when its access token has expired. The renewed session stays in memory: the CLI’s file is never written. - Instance
Metadata - The credential of the service account the instance runs as, from the
instance’s metadata service: a session is opened for six hours, and each
access token, which lives five minutes, requested with it a minute
before the last one expires. The requests never go through a proxy,
which the metadata service refuses, and one it can’t answer right now
(
503) is sent again twice. - Service
Account - A service account’s client ID and secret, exchanged for access tokens with the client credentials grant as they expire.
Constants§
- METADATA_
ENDPOINT - The instance metadata service, which software on an instance reaches at this link-local address.
- TOKEN_
URL - The identity provider’s token endpoint, where service account credentials and the CLI’s session are exchanged for access tokens.
Traits§
- Credentials
- Credentials supply the access token each call is sent with.
Functions§
- default_
credentials - The first credentials found, in this order:
Type Aliases§
- Token
Future - What
Credentials::tokenreturns.