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(issuerURL string) http.Handler

      NewHandler returns an http.Handler that serves an OIDC discovery endpoint.

      Types

      type Metadata

      type Metadata struct {
      	Issuer string `json:"issuer"`
      
      	AuthorizationEndpoint string `json:"authorization_endpoint"`
      	TokenEndpoint         string `json:"token_endpoint"`
      	JWKSURI               string `json:"jwks_uri"`
      
      	ResponseTypesSupported           []string `json:"response_types_supported"`
      	SubjectTypesSupported            []string `json:"subject_types_supported"`
      	IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
      
      	TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"`
      	ScopesSupported                   []string `json:"scopes_supported"`
      	ClaimsSupported                   []string `json:"claims_supported"`
      }

        Metadata holds all fields (that we care about) from the OpenID Provider Metadata section in the OpenID Connect Discovery specification: https://openid.net/specs/openid-connect-discovery-1_0.html#rfc.section.3.