auth0

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountIDResolver

type AccountIDResolver func(ctx context.Context, identity string) (accountID string, err error)

AccountIDResolver finds the AccountID associated with the specified identity.

type Authenticator

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

func New

func New(cfg *Config, logger *zerolog.Logger, resolver AccountIDResolver) *Authenticator

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(ctx context.Context, token string) (string, error)

type Config

type Config struct {
	AcceptableTimeSkewSeconds int    `json:"acceptable_time_skew"`
	Audience                  string `json:"audience"`
	Domain                    string `json:"domain"`
	ClientID                  string `json:"client_id"`
	ClientSecret              string `json:"client_secret"`
}

Jump to

Keyboard shortcuts

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