Skip to content

Add setPreAuthenticationChecks to Reactive Manager#19278

Open
big-cir wants to merge 1 commit into
spring-projects:mainfrom
big-cir:gh-19275
Open

Add setPreAuthenticationChecks to Reactive Manager#19278
big-cir wants to merge 1 commit into
spring-projects:mainfrom
big-cir:gh-19275

Conversation

@big-cir

@big-cir big-cir commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Overview

AbstractUserDetailsReactiveAuthenticationManager runs pre-authentication checks (locked/disabled/expired) before validating the password, but unlike the post-authentication checks they cannot be customized:

manager.setPostAuthenticationChecks(customChecker); // available since 5.2
manager.setPreAuthenticationChecks(customChecker);  // does not exist

The servlet counterpart (AbstractUserDetailsAuthenticationProvider) allows customizing both. This PR adds the missing setPreAuthenticationChecks setter (@since 7.1) along with tests for null validation and for a custom checker being invoked during authentication.

Related Issue

Closes gh-19275

The pre-authentication checks could not be customized, unlike the
post-authentication checks and the servlet counterpart.

Closes spring-projectsgh-19275

Signed-off-by: dae won <eodnjs01477@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add setPreAuthenticationChecks to AbstractUserDetailsReactiveAuthenticationManager

2 participants