Versions in this module Expand all Collapse all v0 v0.1.0 Dec 19, 2022 Changes in this version + const JWTTokenURL + var Endpoint = oauth2.Endpoint + func AppEngineTokenSource(ctx context.Context, scope ...string) oauth2.TokenSource + func ComputeTokenSource(account string, scope ...string) oauth2.TokenSource + func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) + func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) + func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error) + func JWTAccessTokenSourceFromJSON(jsonKey []byte, audience string) (oauth2.TokenSource, error) + func JWTAccessTokenSourceWithScope(jsonKey []byte, scope ...string) (oauth2.TokenSource, error) + func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) + type AuthenticationError struct + func (e *AuthenticationError) Error() string + func (e *AuthenticationError) Temporary() bool + func (e *AuthenticationError) Unwrap() error + type Credentials struct + JSON []byte + ProjectID string + TokenSource oauth2.TokenSource + func CredentialsFromJSON(ctx context.Context, jsonData []byte, scopes ...string) (*Credentials, error) + func CredentialsFromJSONWithParams(ctx context.Context, jsonData []byte, params CredentialsParams) (*Credentials, error) + func FindDefaultCredentials(ctx context.Context, scopes ...string) (*Credentials, error) + func FindDefaultCredentialsWithParams(ctx context.Context, params CredentialsParams) (*Credentials, error) + type CredentialsParams struct + AuthHandler authhandler.AuthorizationHandler + PKCE *authhandler.PKCEParams + Scopes []string + State string + Subject string + type DefaultCredentials = Credentials + type SDKConfig struct + func NewSDKConfig(account string) (*SDKConfig, error) + func (c *SDKConfig) Client(ctx context.Context) *http.Client + func (c *SDKConfig) Scopes() []string + func (c *SDKConfig) TokenSource(ctx context.Context) oauth2.TokenSource