Skip to content

Commit

Permalink
Fix OIDC discovery required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
giftkugel committed Sep 9, 2024
1 parent e67a345 commit 100fba7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions internal/server/handler/oidc/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ type oidcConfigurationResponse struct {
JWKsUri string `json:"jwks_uri,omitempty"`
RegistrationEndpoint string `json:"registration_endpoint,omitempty"`
ScopesSupported []string `json:"scopes_supported,omitempty"`
ResponseTypesSupported []oauth2.ResponseType `json:"response_types_supported,omitempty"`
ResponseTypesSupported []oauth2.ResponseType `json:"response_types_supported"`
ResponseModesSupported []string `json:"response_modes_supported,omitempty"`
GrantTypesSupported []oauth2.GrantType `json:"grant_types_supported,omitempty"`
AcrValuesSupported []string `json:"acr_values_supported,omitempty"`
SubjectTypesSupported []string `json:"subject_types_supported,omitempty"`
IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported,omitempty"`
SubjectTypesSupported []string `json:"subject_types_supported"`
IdTokenSigningAlgValuesSupported []jwa.SignatureAlgorithm `json:"id_token_signing_alg_values_supported"`
IdTokenEncryptionAlgValuesSupported []string `json:"id_token_encryption_alg_values_supported,omitempty"`
IdTokenEncryptionEncValuesSupported []string `json:"id_token_encryption_enc_values_supported,omitempty"`
UserInfoSigningAlgValuesSupported []string `json:"userinfo_signing_alg_values_supported,omitempty"`
UserInfoSigningAlgValuesSupported []jwa.SignatureAlgorithm `json:"userinfo_signing_alg_values_supported,omitempty"`
UserInfoEncryptionAlgValuesSupported []string `json:"userinfo_encryption_alg_values_supported,omitempty"`
UserInfoEncryptionEncValuesSupported []string `json:"userinfo_encryption_enc_values_supported,omitempty"`
RequestObjectSigningAlgValuesSupported []string `json:"request_object_signing_alg_values_supported,omitempty"`
RequestObjectSigningAlgValuesSupported []jwa.SignatureAlgorithm `json:"request_object_signing_alg_values_supported,omitempty"`
RequestObjectEncryptionAlgValuesSupported []string `json:"request_object_encryption_alg_values_supported,omitempty"`
RequestObjectEncryptionEncValuesSupported []string `json:"request_object_encryption_enc_values_supported,omitempty"`
DisplayValuesSupported []string `json:"display_values_supported,omitempty"`
Expand Down Expand Up @@ -135,6 +135,8 @@ func (h *DiscoveryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
IntrospectionEndpointAuthSigningAlgValuesSupported: signatureAlgorithmSupported,
RevocationEndpointAuthMethodsSupported: authMethodsSupported,
RevocationEndpointAuthSigningAlgValuesSupported: signatureAlgorithmSupported,
IdTokenSigningAlgValuesSupported: signatureAlgorithmSupported,
SubjectTypesSupported: []string{"public"},
}
jsonError := internalHttp.SendJson(metadataResponse, w)
if jsonError != nil {
Expand Down

0 comments on commit 100fba7

Please sign in to comment.