jwt

package
v2.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	JWKSURL string
	Refresh time.Duration
}

type Verifier

type Verifier interface {
	Start()
	Stop()
	AddProvider(provider Provider)
	EnsureProvidersLoaded(ctx context.Context) error
	Parse(raw string, provider Provider) (map[string]interface{}, error)
}

func NewVerifier

func NewVerifier(opts VerifierOptions) Verifier

NewVerifier creates a Verifier. Call Start() after creation.

type VerifierOptions

type VerifierOptions struct {
	Providers             []Provider
	CacheTTL              time.Duration
	CacheEvictionInterval time.Duration
	MaxCachedEntries      int
}

Jump to

Keyboard shortcuts

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