middleware

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingKid          = errors.New("missing key id")
	ErrMatchingKeyNotFound = errors.New("matching key not found")
)

Functions

func RequireJWT

func RequireJWT(next http.Handler, tokenVerifier AccessTokenValidator) http.Handler

Types

type AccessTokenValidator

type AccessTokenValidator interface {
	Validate(rawToken string) (string, error)
}

func NewAccessTokenValidator

func NewAccessTokenValidator(keySetProvider keyset.Provider) AccessTokenValidator

Jump to

Keyboard shortcuts

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