Skip to main content

Module credentials

Module credentials 

Source
Expand description

Credentials: where the access token each call is sent with comes from.

Structs§

AccessToken
An access token, sent as it is. It is not renewed: a service account’s lives five minutes.
CliSession
The session the origin CLI 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.
ServiceAccount
A service account’s client ID and secret, exchanged for access tokens with the client credentials grant as they expire.

Constants§

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§

TokenFuture
What Credentials::token returns.