# Functions
Returns the given token in standard header format.
BuildRefreshTokenJSON attempts to construct a gcloud refresh token JSON using a refreshToken and an OAuth Client ID Credentials object.
No description provided by the author
Fetches token with the given settings using Google Authenticator and use the token as header to make curl request.
Executes curl command with provided header and params.
EncodeClaims base64 encodes supported STS claims in settings.
Fetches and prints the token in plain text with the given settings using Google Authenticator.
Returns a token from the given settings.
FindJSONCredentials obtains credentials from settings or Application Default Credentials.
GeneratePKCEParams generates a unique PKCE challenge and verifier combination, using UUID, SHA256 encryption, and base64 URL encoding with no padding.
GenerateServiceAccountAccessToken generates a Service Account access token using a User access token approved for at least one of the following scopes: * https://www.googleapis.com/auth/iam * https://www.googleapis.com/auth/cloud-platform.
3LO authorization handler.
getFirstRedirectURI returns the the first URI in "redirect_uris"
credentialsJSON represents the credentials json file.
GetListener gets a listener on the port specified in the address.
No description provided by the author
Fetches and prints the token in header format with the given settings using Google Authenticator.
Fetches the information of the given token.
No description provided by the author
IsValidOauthClientIdFile determines if a valid OAuth Client ID file can be created from a credentials json file.
No description provided by the author
No description provided by the author
Marshals the given oauth2.Token into a JSON bytearray and include Extra fields that normally would be omitted with default marshalling.
No description provided by the author
Resets the cache.
Fetches and returns OAuth access token using SSO CLI.
Exchanges an OAuth Access Token to an Sts token with base64 encoded claims.
Tests the given token.
Unmarshals the given JSON bytearray into oauth2.Token and include Extra fields that normally would be omitted with default unmarshalling.
Runs the frontend/backend for OAuth2l Playground.
Closes the containers and removes stopped containers.
# Constants
No description provided by the author
Failed to grant authorization code.
Authorization code successfully granted.
IamServiceAccountAccessTokenURL is used for generating accesss token for a Service Account.
Loopback server endpoints.
Loopback server endpoints.
StsURL is Google's Secure Token Service endpoint used for obtaining STS token.
Waiting for authorization code (waiting for authorization code request to start, or for authorization code request to complete).
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AuthorizationCode represents the authorization code.
AuthorizationCodeLocalhost implements AuthorizationCodeServer.
AuthorizationCodeStatus represents the state of the authorization code.
Browser represents an internet browser.
The key struct that used to identify an auth token fetch operation.
ConsentPageSettings is a 3-legged-OAuth helper that contains the settings for the interaction with the consent page.
An extensible structure that holds the credentials for Google API authentication.
An extensible structure that holds the settings used by different oauth2l tasks.
# Interfaces
AuthorizationCodeServer represents a localhost server that handles the Loopback 3LO authorization.
# Type aliases
No description provided by the author