Add authenticationSuccessHandler for OAuth2 auth code callback by wonderfulrosemari · Pull Request #18814 · spring-projects/spring-security
Navigation Menu
{{ message }}
spring-projects / spring-security Public
- Notifications You must be signed in to change notification settings
- Fork 6.3k
Open
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
Open
Add authenticationSuccessHandler for OAuth2 auth code callback#18814
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
Add authenticationSuccessHandler for OAuth2 auth code callback#18814
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
Conversation
Copy link
Contributor
wonderfulrosemari
commented
Feb 27, 2026
wonderfulrosemari
commented
Closes gh-11069
This PR adds support for configuring a custom AuthenticationSuccessHandler
for the OAuth2 authorization code callback filter.
Changes include:
- adding setAuthenticationSuccessHandler(...) to OAuth2AuthorizationCodeGrantFilter
- invoking the custom success handler after saving the authorized client
- preserving existing redirect behavior when no custom success handler is configured
- adding tests for null validation and custom success handler invocation
- exposing the customization through OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
- adding config tests to verify DSL wiring
Signed-off-by: wonderfulrosemari <whwlsgur1419@naver.com>
spring-projects-issues
added
the
status: waiting-for-triage
label
Feb 27, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment