authenticator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyClientID = fmt.Errorf("client id cannot be empty")
View Source
var ErrEmptyClientSecret = fmt.Errorf("client secret cannot be empty")
View Source
var ErrEmptyDomain = fmt.Errorf("domain cannot be empty")
View Source
var ErrEmptyRedirectURI = fmt.Errorf("redirect uri cannot be empty")
View Source
var ErrNoIDToken = fmt.Errorf("no id_token field in oauth2 token")

Functions

This section is empty.

Types

type Authenticator

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

func New

func New() (*Authenticator, error)

func (*Authenticator) VerifyIDToken

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

type Config

type Config struct {
	Domain       string
	ClientID     string
	ClientSecret string
	RedirectURI  string
}

Config defines required configuration values for Auth0.

* Values are read from the environment. They cannot be overridden or set from code.

Jump to

Keyboard shortcuts

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