jwk

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider

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

func NewDefaultProvider

func NewDefaultProvider() *DefaultProvider

func (*DefaultProvider) GetJwks

func (p *DefaultProvider) GetJwks() (*jose.JSONWebKeySet, error)

func (*DefaultProvider) GetPrivateKey

func (p *DefaultProvider) GetPrivateKey(ctx context.Context) (interface{}, error)

type Handler

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

func NewHandler

func NewHandler(jwkProvider Provider, cacheDuration time.Duration) *Handler

func (*Handler) HandleKeys

func (j *Handler) HandleKeys(w http.ResponseWriter, r *http.Request)

func (*Handler) SetupRoutes

func (j *Handler) SetupRoutes(mux *http.ServeMux)

type Provider

type Provider interface {
	GetJwks() (*jose.JSONWebKeySet, error)
	GetPrivateKey(ctx context.Context) (interface{}, error)
}

Jump to

Keyboard shortcuts

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