jwt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidAudClaimError = errors.New("Claim 'aud' did not contain valid service id")
View Source
var TokenNotFoundError = errors.New("Authorization header does not contain a bearer token")

Functions

func GetMiddleware

func GetMiddleware(opts JWTValidationOpts) server.MiddlewareFunc

GetMiddleware starts a go routine that periodically fetches the JWKS key set and returns a middleware that uses that keyset to validate a token

Types

type JWTValidationOpts

type JWTValidationOpts struct {
	JWTServiceID  string
	JWKSURLString string
}

Jump to

Keyboard shortcuts

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