package
0.0.1
Repository: https://github.com/shimt/pam-exec-oauth2.git
Documentation: pkg.go.dev

# Functions

AppEngineTokenSource returns a token source that fetches tokens from either the current application's service account or from the metadata server, depending on the App Engine environment.
ComputeTokenSource returns a token source that fetches access tokens from Google Compute Engine (GCE)'s metadata server.
ConfigFromJSON uses a Google Developers Console client_credentials.json file to construct a config.
CredentialsFromJSON invokes CredentialsFromJSONWithParams with the specified scopes.
CredentialsFromJSONWithParams obtains Google credentials from a JSON value.
DefaultClient returns an HTTP Client that uses the DefaultTokenSource to obtain authentication credentials.
DefaultTokenSource returns the token source for "Application Default Credentials".
FindDefaultCredentials invokes FindDefaultCredentialsWithParams with the specified scopes.
FindDefaultCredentialsWithParams searches for "Application Default Credentials".
JWTAccessTokenSourceFromJSON uses a Google Developers service account JSON key file to read the credentials that authorize and authenticate the requests, and returns a TokenSource that does not use any OAuth2 flow but instead creates a JWT and sends that as the access token.
JWTConfigFromJSON uses a Google Developers service account JSON key file to read the credentials that authorize and authenticate the requests.
NewSDKConfig creates an SDKConfig for the given Google Cloud SDK account.

# Constants

JWTTokenURL is Google's OAuth 2.0 token URL to use with the JWT flow.

# Variables

Endpoint is Google's OAuth 2.0 default endpoint.

# Structs

Credentials holds Google credentials, including "Application Default Credentials".
CredentialsParams holds user supplied parameters that are used together with a credentials file for building a Credentials object.
An SDKConfig provides access to tokens from an account already authorized via the Google Cloud SDK.

# Type aliases

DefaultCredentials is the old name of Credentials.