jwks

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 22 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
	SecretManager secrets.Config

	Port string `env:"PORT, default=8080"`
}

func (*Config) DatabaseConfig

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

func (*Config) SecretManagerConfig added in v0.9.1

func (c *Config) SecretManagerConfig() *secrets.Config

type Manager

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

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

func NewManager added in v0.9.1

func NewManager(ctx context.Context, db *database.DB) (*Manager, error)

NewManager creates a new Manager.

func (*Manager) UpdateAll

func (mgr *Manager) UpdateAll(ctx context.Context) error

UpdateAll reads the JWKS keys for all HealthAuthorities.

type Server added in v0.9.1

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

Server is the debugger server.

func NewServer added in v0.9.1

func NewServer(config *Config, env *serverenv.ServerEnv) (*Server, error)

NewServer makes a new debugger server.

func (*Server) Routes added in v0.9.1

func (s *Server) Routes(ctx context.Context) *http.ServeMux

Jump to

Keyboard shortcuts

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