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)
Click to show internal directories.
Click to hide internal directories.