dynamic

package
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 18 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) 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