jwks

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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"`
	// Optional CA certificate to trust. Can be a path to a local file or an actual, PEM-encoded certificate
	CACertificate string `mapstructure:"caCertificate"`
	// 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