Skip to content

Feature: Improve AbstractAuthenticationFilterConfigurer by only using one instance of successHandler#19070

Open
AB-xdev wants to merge 1 commit intospring-projects:mainfrom
AB-xdev:abstractAuthenticationFilterConfigurer-use-one-successhandler
Open

Feature: Improve AbstractAuthenticationFilterConfigurer by only using one instance of successHandler#19070
AB-xdev wants to merge 1 commit intospring-projects:mainfrom
AB-xdev:abstractAuthenticationFilterConfigurer-use-one-successhandler

Conversation

@AB-xdev
Copy link
Copy Markdown
Contributor

@AB-xdev AB-xdev commented Apr 14, 2026

Fixes #19123

Instead of keeping 2 instances of successHandler (defaultSuccessHandler) only one is kept and the request cache is only set if the instance implements HasRequestCacheSetter and the trySetRequestCacheIntoSuccessHandler flag is set to true (default).

This way it's also easier for devs to customize the corresponding code as RequestCache must no longer be set manually when supplying a custom SuccessHandler.

@AB-xdev AB-xdev force-pushed the abstractAuthenticationFilterConfigurer-use-one-successhandler branch from 3f6aeb3 to 6ca983c Compare April 14, 2026 15:31
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 14, 2026
@AB-xdev AB-xdev marked this pull request as ready for review April 14, 2026 15:32
@AB-xdev AB-xdev force-pushed the abstractAuthenticationFilterConfigurer-use-one-successhandler branch from 6ca983c to 36b0da1 Compare April 14, 2026 15:48
@AB-xdev AB-xdev marked this pull request as draft April 16, 2026 09:33
@AB-xdev AB-xdev force-pushed the abstractAuthenticationFilterConfigurer-use-one-successhandler branch from 36b0da1 to a6a1cfc Compare April 23, 2026 11:01
…ance of successHandler

Instead of keeping 2 instances of successHandler (defaultSuccessHandler) only one is kept and the request cache is only set if the instance implements `HasRequestCacheSetter` and the `trySetRequestCacheIntoSuccessHandler` flag is set to true (default).

This way it's also easier for devs to customize the corresponding code as RequestCache must no longer be set manually when supplying a custom SuccessHandler.

Signed-off-by: AB <a.bierler@xdev-software.de>
@AB-xdev AB-xdev force-pushed the abstractAuthenticationFilterConfigurer-use-one-successhandler branch from a6a1cfc to cbe9dd4 Compare April 23, 2026 11:22
@AB-xdev AB-xdev marked this pull request as ready for review April 23, 2026 11:40
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.

Use only one instance of successHandler in AbstractAuthenticationFilterConfigurer

2 participants