jwkproxy

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFetchURL

func WithFetchURL(u string) func(*Loader)

func WithHTTPClient

func WithHTTPClient(c *http.Client) func(*Loader)

Types

type InMemory

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

func NewInMemory

func NewInMemory(ldr *Loader, ttl time.Duration) *InMemory

func (*InMemory) FetchKeys

func (m *InMemory) FetchKeys() (jwk.Set, error)

func (*InMemory) FetchKeysContext

func (m *InMemory) FetchKeysContext(ctx context.Context) (jwk.Set, error)

func (*InMemory) Refresh

func (m *InMemory) Refresh() error

func (*InMemory) RefreshContext

func (m *InMemory) RefreshContext(ctx context.Context) error

type Interface

type Interface interface {
	Refresh() error
	RefreshContext(ctx context.Context) error

	FetchKeys() (jwk.Set, error)
	FetchKeysContext(ctx context.Context) (jwk.Set, error)
}

type Loader

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

func NewLoader

func NewLoader(opts ...func(*Loader)) *Loader

func (*Loader) FetchContext

func (l *Loader) FetchContext(ctx context.Context) (jwk.Set, error)

Jump to

Keyboard shortcuts

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