Skip to content

Add a configurable ServerAuthenticationSuccessHandler to OAuth2Resour…#18895

Open
iain-henderson wants to merge 1 commit intospring-projects:mainfrom
iain-henderson:feature/oauth2resourceserverspec-success-handler
Open

Add a configurable ServerAuthenticationSuccessHandler to OAuth2Resour…#18895
iain-henderson wants to merge 1 commit intospring-projects:mainfrom
iain-henderson:feature/oauth2resourceserverspec-success-handler

Conversation

@iain-henderson
Copy link

The lack of a configurable ServerAuthenticationSuccessHandler in OAuth2ResourceServerSpec seemed like an oversight.

This PR corrects that.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 14, 2026
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @iain-henderson! I've left some feedback inline. Will you also please add a unit test to OAuth2ResourceServerSpecTests to confirm the authenticationSuccessHandler is used when specified?

return this;
}

public OAuth2ResourceServerSpec authenticationSuccessHandler(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you please add a JavaDoc here, please? Please include a description of the method, what the default value is, and a @since 7.1 indicating the version in which it was added.

@jzheaux
Copy link
Contributor

jzheaux commented Mar 20, 2026

In addition to the review comments, will you please make sure to sign the DCO?

@jzheaux jzheaux self-assigned this Mar 20, 2026
@jzheaux jzheaux added in: config An issue in spring-security-config type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 20, 2026
@jzheaux jzheaux added this to the 7.1.0-RC1 milestone Mar 20, 2026
@jzheaux jzheaux added the status: waiting-for-feedback We need additional information before we can continue label Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: config An issue in spring-security-config in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: waiting-for-feedback We need additional information before we can continue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants