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