auth

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleSATokenSource

type GoogleSATokenSource struct {
	// contains filtered or unexported fields
}

func NewGoogleSATokenSource

func NewGoogleSATokenSource(audience string) (*GoogleSATokenSource, error)

idtoken libraries can get the token from the metadata server.

func (*GoogleSATokenSource) Token

func (g *GoogleSATokenSource) Token() (*oauth2.Token, error)

type GoogleUserTokenSource

type GoogleUserTokenSource struct {
	// contains filtered or unexported fields
}

func NewGoogleUserTokenSource

func NewGoogleUserTokenSource() (*GoogleUserTokenSource, error)

func (*GoogleUserTokenSource) Token

func (g *GoogleUserTokenSource) Token() (*oauth2.Token, error)

Sending an ADC token isn't supported out-of-the-box like it is with service accounts

type TokenSource

type TokenSource interface {
	Token() (*oauth2.Token, error)
}

func GenerateTokenSource

func GenerateTokenSource(authInfo instance.AuthInfo) (TokenSource, error)

Jump to

Keyboard shortcuts

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