You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 26, 2026. It is now read-only.
code_challenge_methods_supported field not in openid-configuration endpoint #1302
Expected Behavior
The code_challenge_methods_supported field should be included in the .well-known/openid-configuration endpoint.
Current Behavior
Currently, the code_challenge_methods_supported field is only available in the .well-known/oauth-authorization-server endpoint, However, we typically only use auto-discovery when using OIDC clients.
Thanks for the report @drunkcattt. Would you be interested in submitting a PR for this enhancement?
In the meantime, you can customize the OpenID Connect 1.0 Provider Configuration Endpoint and add the code_challenge_methods_supported metadata. See providerConfigurationCustomizer() in the reference documentation.
According to the processing logic of the CodeVerifierAuthenticator, I have directly added .codeChallengeMethod("S256") to the OidcProviderConfigurationEndpointFilter, similar to the OAuth2AuthorizationServerMetadataEndpointFilter.
Activity
jgrandja commentedon Jul 31, 2023
Thanks for the report @drunkcattt. Would you be interested in submitting a PR for this enhancement?
In the meantime, you can customize the OpenID Connect 1.0 Provider Configuration Endpoint and add the
code_challenge_methods_supportedmetadata. SeeproviderConfigurationCustomizer()in the reference documentation.Tuxzx commentedon Aug 7, 2023
https://github.com/spring-projects/spring-authorization-server/blob/0a87e78bd1ac9e37f7c5d2c5f97de81c4d995085/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/CodeVerifierAuthenticator.java#L140-L158
#1329
According to the processing logic of the
CodeVerifierAuthenticator, I have directly added.codeChallengeMethod("S256")to theOidcProviderConfigurationEndpointFilter, similar to theOAuth2AuthorizationServerMetadataEndpointFilter.Get latest from source (#2)
Add code challenge methods for oidc provider configuration response