jwtauth

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MissingAuthHeaderMessage  = "missing authorization header"
	InvalidAuthHeaderMessage  = "invalid authorization header, must begin with 'Bearer '"
	InvalidTokenFormatMessage = "invalid token format in authorization header, must be JWT"
	NoTrustedKeyMessage       = "A valid JWT was found, but not signed with a trusted key"

	VerifiedJWTHeader = "X-Verified-JWT"
)

Variables

This section is empty.

Functions

func JWKSAuthFunc

func JWKSAuthFunc(jwks JWKS) proxy.AuthFunc

Types

type JWKS

type JWKS interface {
	GetKeys(keyID string) ([]jose.JSONWebKey, error)
	KeyDebug() interface{}
}

Jump to

Keyboard shortcuts

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