oauth

package
v0.0.0-...-a810f17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizedUserIDClient

func AuthorizedUserIDClient(ctx context.Context) (*http.Client, error)

AuthorizedUserIDClient provides a client that attaches an id_token derived from the default credential.

func AuthorizedUserTokenSource

func AuthorizedUserTokenSource(ctx context.Context) (oauth2.TokenSource, error)

AuthorizedUserTokenSource provides a token source for the id_token derived from the default credential.

func GetOauthClient

func GetOauthClient(ctx context.Context, config *oauth2.Config) (*http.Client, error)

GetOauthClient retrieves a token, saves the token, then returns the generated client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL