jwks

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package discovery provides a handler for the OIDC discovery endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(issuerName string, provider DynamicJWKSProvider) http.Handler

NewHandler returns an http.Handler that serves an OIDC JWKS endpoint for a specific issuer.

Types

type DynamicJWKSProvider

type DynamicJWKSProvider interface {
	SetIssuerToJWKSMap(
		issuerToJWKSMap map[string]*jose.JSONWebKeySet,
		issuerToActiveJWKMap map[string]*jose.JSONWebKey,
	)
	GetJWKS(issuerName string) (jwks *jose.JSONWebKeySet, activeJWK *jose.JSONWebKey)
}

func NewDynamicJWKSProvider

func NewDynamicJWKSProvider() DynamicJWKSProvider

Jump to

Keyboard shortcuts

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