discovery

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCacheFor = 1 * time.Minute

Variables

This section is empty.

Functions

func DefaultCoreMetadata

func DefaultCoreMetadata(issuer string) *oidc.ProviderMetadata

DefaultCoreMetadata returns a ProviderMetadata instance with defaults suitable for the core package in this module. Most endpoints will need to be added to this.

Types

type ConfigurationHandler

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

ConfigurationHandler is a http.ConfigurationHandler that can serve the OIDC provider metadata endpoint, and keys from a source.

It should be mounted at `<issuer>/.well-known/openid-configuration`, and all subpaths. This can be achieved with the stdlib mux by using a trailing slash. Any prefix should be stripped before calling this ConfigurationHandler

func NewConfigurationHandler

func NewConfigurationHandler(metadata *oidc.ProviderMetadata, keyset jwt.PublicKeyset) (*ConfigurationHandler, error)

NewConfigurationHandler configures and returns a ConfigurationHandler.

func (*ConfigurationHandler) ServeHTTP

func (h *ConfigurationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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