dynamic

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package dynamic provides the logic for reading and validating JWT tokens using a JWKS URL from the token's `iss` claim.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator dynamically validates JWTs by fetching the key from the well-known OIDC issuer URL.

func NewDynamicValidator

func NewDynamicValidator(ctx context.Context, aud string, issuers []string) *Validator

NewDynamicValidator creates a new instance of the dynamic JWT validator

func (Validator) IsAllowed added in v0.3.1

func (m Validator) IsAllowed(url string) bool

IsAllowed implements httprc.Whitelist

func (Validator) ParseAndValidate

func (m Validator) ParseAndValidate(tokenString string) (openid.Token, error)

ParseAndValidate implements jwt.Validator.

Jump to

Keyboard shortcuts

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