Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Make EnableMfaFiltersConfiguration.mfaBeanPostProcessor() static - #20173

Open
mohit32886 wants to merge 1 commit into
spring-projects:mainfrom
mohit32886:gh-20172
Open

mohit32886 wants to merge 1 commit into
spring-projects:mainfrom
mohit32886:gh-20172

Conversation

@mohit32886

Copy link
Copy Markdown

Makes EnableMfaFiltersConfiguration.mfaBeanPostProcessor() static so Spring does not instantiate EnableMfaFiltersConfiguration prematurely during BeanPostProcessor registration and emit a BeanPostProcessorChecker warning at startup.

  • Declare EnableMfaFiltersConfiguration.mfaBeanPostProcessor() as static (EnableMfaFiltersPostProcessor is already a private static nested class).
  • Add EnableMfaFiltersConfigurationTests verifying that registering @EnableMultiFactorAuthentication does not emit a BeanPostProcessorChecker warning for mfaBeanPostProcessor / EnableMfaFiltersConfiguration.

Closes gh-20172

Declare EnableMfaFiltersConfiguration.mfaBeanPostProcessor() as static
so the configuration class is not instantiated prematurely while
BeanPostProcessors are being registered, avoiding the
BeanPostProcessorChecker warning on startup.

Closes spring-projectsgh-20172

Signed-off-by: Mohit Gupta <mohit32886@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 25, 2026

This branch has not been deployed

No deployments
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.

EnableMfaFiltersConfiguration.mfaBeanPostProcessor() should be static to avoid BeanPostProcessorChecker warning

2 participants