Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWK ¶
type JWK struct {
Alg string `json:"alg,omitempty"`
Kty string `json:"kty,omitempty"`
Use string `json:"use,omitempty"`
Kid string `json:"kid,omitempty"`
X5T string `json:"x5t,omitempty"`
K string `json:"k,omitempty"`
N string `json:"n,omitempty"`
E string `json:"e,omitempty"`
X5C []string `json:"x5c,omitempty"`
}
JWK JSON Web Key
type OpenIDConfig ¶
type OpenIDConfig struct {
Issuer string `json:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"`
TokenEndpointAuthSigningAlgValuesSupported []string `json:"token_endpoint_auth_signing_alg_values_supported"`
UserinfoEndpoint string `json:"userinfo_endpoint"`
CheckSessionIframe string `json:"check_session_iframe"`
EndSessionEndpoint string `json:"end_session_endpoint"`
JwksURI string `json:"jwks_uri"`
RegistrationEndpoint string `json:"registration_endpoint"`
ScopesSupported []string `json:"scopes_supported"`
ResponseTypesSupported []string `json:"response_types_supported"`
AcrValuesSupported []string `json:"acr_values_supported"`
SubjectTypesSupported []string `json:"subject_types_supported"`
UserinfoSigningAlgValuesSupported []string `json:"userinfo_signing_alg_values_supported"`
UserinfoEncryptionAlgValuesSupported []string `json:"userinfo_encryption_alg_values_supported"`
UserinfoEncryptionEncValuesSupported []string `json:"userinfo_encryption_enc_values_supported"`
IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
IDTokenEncryptionAlgValuesSupported []string `json:"id_token_encryption_alg_values_supported"`
IDTokenEncryptionEncValuesSupported []string `json:"id_token_encryption_enc_values_supported"`
RequestObjectSigningAlgValuesSupported []string `json:"request_object_signing_alg_values_supported"`
DisplayValuesSupported []string `json:"display_values_supported"`
ClaimTypesSupported []string `json:"claim_types_supported"`
ClaimsSupported []string `json:"claims_supported"`
ClaimsParameterSupported bool `json:"claims_parameter_supported"`
ServiceDocumentation string `json:"service_documentation"`
UILocalesSupported []string `json:"ui_locales_supported"`
}
OpenIDConfig is the expected return from the wellk-known endpoint
func Default ¶
func Default() *OpenIDConfig
func OidcV2 ¶ added in v0.1.0
func OidcV2(url string) *OpenIDConfig
Click to show internal directories.
Click to hide internal directories.