jwks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package jwks manages downloading and updating the keys from a JWKS source for keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database database.Config
}

func (*Config) DatabaseConfig

func (c *Config) DatabaseConfig() *database.Config

func (*Config) JWKSManagerConfig

func (c *Config) JWKSManagerConfig() *Config

type Manager

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

Manager handles updating all HealthAuthorities if they've specified a JWKS URI.

func NewFromEnv

func NewFromEnv(ctxt context.Context, logger *zap.SugaredLogger, db *database.DB, cfg *Config) (Manager, error)

NewFromEnv creates a new JWKS configuration manager.

func (Manager) UpdateAll

func (mgr Manager) UpdateAll()

UpdateAll reads the JWKS keys for all HealthAuthorities.

Jump to

Keyboard shortcuts

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