auth

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken added in v0.7.0

func GetAuthToken(ctx context.Context) (*oauth2.Token, *http.Client, error)

Types

type Authenticator added in v0.7.0

type Authenticator struct {
	*oidc.Provider
	oauth2.Config
}

func (*Authenticator) HTTPClient added in v0.7.0

func (auth *Authenticator) HTTPClient(ctx context.Context, token *oauth2.Token) *http.Client

func (*Authenticator) VerifyIDToken added in v0.7.0

func (a *Authenticator) VerifyIDToken(ctx context.Context, token *oauth2.Token) (*oidc.IDToken, error)

VerifyIDToken verifies that an *oauth2.Token is a valid *oidc.IDToken.

Jump to

Keyboard shortcuts

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