jwt

package
v0.0.0-...-36fb5e2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0Validator

type Auth0Validator interface {
	ValidateToken(token string) (Token, error)
	SetContext(ctx context.Context) error
}

func NewAuth0JWTValidator

func NewAuth0JWTValidator(client *http.Client, domain, audience, clientSecret, algorithm string, ignoreScope bool) (Auth0Validator, error)

type Token

type Token struct {
	Aud    []string
	Iss    string
	Sub    string
	Claims map[string]any
}

Jump to

Keyboard shortcuts

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