Wrapper around Google Access Tokens which provides convenience functions.

ApplicationDefaultCredentials obtains the default credentials for authorizing a request to a Google service.

Item deprecated

A cache item.

Simple in-memory cache implementation.

SystemV shared memory based CacheItemPool implementation.

A cache item.

Authenticates requests using AWS credentials.

ExecutableSource enables the exchange of workload identity pool external credentials for Google access tokens by retrieving 3rd party tokens through a user supplied executable. These scripts/executables are completely independent of the Google Cloud Auth libraries. These credentials plug into ADC and will call the specified executable to retrieve the 3rd party token to be exchanged for a Google access token.

Retrieve a token from a file.

Retrieve a token from a URL.

CredentialsLoader contains the behaviour used to locate and find default credentials files on the file system.

GCECredentials supports authorization on Google Compute Engine.

Authenticates requests using IAM credentials.

Provides a set of credentials that will always return an empty access token.

ServiceAccountCredentials supports authorization using a Google service account.

Authenticates requests using Google's Service Account credentials via JWT Access.

Authenticates requests using User Refresh credentials.

A class to implement caching for any object implementing FetchAuthTokenInterface

An interface implemented by objects that can fetch auth tokens.

A class to implement caching for calls to GCECredentials::onGce. This class is used automatically when you pass a Psr\Cache\CacheItemPoolInterface cache object to ApplicationDefaultCredentials::getCredentials.

An interface implemented by objects that can get quota projects.

An interface implemented by objects that can get universe domain for Google Cloud APIs.

Stores an HTTP Client in order to prevent multiple instantiations.

Iam

Tools for using the IAM API.

Trait containing helper methods required for enabling observability metrics in the library.

AuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header provided by an object implementing FetchAuthTokenInterface.

ProxyAuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header provided by an object implementing FetchAuthTokenInterface.

ScopedAccessTokenMiddleware is a Guzzle Middleware that adds an Authorization header provided by a closure.

SimpleMiddleware is a Guzzle Middleware that implements Google's Simple API access.

OAuth2 supports authentication by OAuth2 2-legged flows.

Describes a Credentials object which supports fetching the project ID.

Sign a string using a Service Account private key.

Describes a class which supports signing arbitrary strings.

Describes a Credentials object which supports updating request metadata (request headers).

Provides shared methods for updating request metadata (request headers).