Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultDiscoveryPath = "/.well-known/webfinger"
DefaultDiscoveryPath is the default url path where the discovery configuration is served at
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryConfig ¶
type DiscoveryConfig struct { Issuer string `json:"issuer"` AuthEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` UserInfoEndpoint string `json:"userinfo_endpoint"` RegistrationEndpoint string `json:"registration_endpoint"` KeysEndpoint string `json:"jwks_uri"` ClaimsParameterSupported bool `json:"claims_parameter_supported"` ScopesSupported []string `json:"scopes_supported"` ResponseTypesSupported []string `json:"response_types_supported"` ResponseModesSupported []string `json:"response_modes_supported"` GrantTypesSupported []string `json:"grant_types_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` IDTokenSigningAlgValues []string `json:"id_token_signing_alg_values_supported"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"` TokenEndpointAuthSigningAlgValuesSupported []string `json:"token_endpoint_auth_signing_alg_values_supported"` ClaimsSupported []string `json:"claims_supported"` }
DiscoveryConfig represents publically available OpenID Connect Provider Configuration
func DefaultDiscoveryConfig ¶
func DefaultDiscoveryConfig(url string) *DiscoveryConfig
DefaultDiscoveryConfig returns the default OpenID Connect Discovery Configuration struct given the issuer/base URL
func Fetch ¶
func Fetch(url string) (*DiscoveryConfig, error)
Fetch returns the OpenID Configuration of an OpenID Connect Provider at a given URL
func (*DiscoveryConfig) HTTPHandlerFunc ¶
func (dc *DiscoveryConfig) HTTPHandlerFunc() http.HandlerFunc
HTTPHandlerFunc returns an HTTP handler function for the OpenID Discovery Configuration to be served at
Click to show internal directories.
Click to hide internal directories.