jwks

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts Options) (validator.Validator, error)

Types

type Options

type Options struct {
	// SPIFFE ID of Sentry.
	SentryID spiffeid.ID `mapstructure:"-"`
	// Location of the JWKS: a URL, path on local file, or the actual JWKS (optionally base64-encoded)
	Source string `mapstructure:"source"`
	// Minimum interval before the JWKS can be refrehsed if fetched from a HTTP(S) endpoint.
	MinRefreshInterval time.Duration `mapstructure:"minRefreshInterval"`
	// Timeout for network requests.
	RequestTimeout time.Duration `mapstructure:"requestTimeout"`
}

Jump to

Keyboard shortcuts

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