jwtutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverKeySetURI

func DiscoverKeySetURI(ctx context.Context, configURL string) (string, error)

func FetchKeySet

func FetchKeySet(ctx context.Context, jwksURI string) (*jose.JSONWebKeySet, error)

Types

type CachingKeySetProvider

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

func NewCachingKeySetProvider

func NewCachingKeySetProvider(provider KeySetProvider, refreshInterval time.Duration) *CachingKeySetProvider

func (*CachingKeySetProvider) GetKeySet

func (c *CachingKeySetProvider) GetKeySet(ctx context.Context) (*jose.JSONWebKeySet, error)

type KeySetProvider

type KeySetProvider interface {
	GetKeySet(context.Context) (*jose.JSONWebKeySet, error)
}

type KeySetProviderFunc

type KeySetProviderFunc func(context.Context) (*jose.JSONWebKeySet, error)

func (KeySetProviderFunc) GetKeySet

func (fn KeySetProviderFunc) GetKeySet(ctx context.Context) (*jose.JSONWebKeySet, error)

type OIDCIssuer

type OIDCIssuer string

func (OIDCIssuer) GetKeySet

func (c OIDCIssuer) GetKeySet(ctx context.Context) (*jose.JSONWebKeySet, error)

Jump to

Keyboard shortcuts

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