Skip to content

Comments

Add authentication-failure-handler-ref to <session-management>#18761

Closed
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
wonderfulrosemari:gh-2000-session-management-failure-handler
Closed

Add authentication-failure-handler-ref to <session-management>#18761
wonderfulrosemari wants to merge 1 commit intospring-projects:mainfrom
wonderfulrosemari:gh-2000-session-management-failure-handler

Conversation

@wonderfulrosemari
Copy link

Closes gh-2000

This PR adds XML namespace support for configuring a custom AuthenticationFailureHandler on <session-management>.

It introduces support for:

<session-management authentication-failure-handler-ref="..."/>

Changes include:

  • parsing and wiring authentication-failure-handler-ref in HttpConfigurationBuilder
  • validation to prevent using authentication-failure-handler-ref together with session-authentication-error-url
  • schema updates in namespace RNC/XSD files (5.8 through 7.1)
  • session-management namespace appendix documentation update
  • integration tests for custom failure handler invocation
  • integration tests for mutual-exclusion parsing error when both attributes are configured

Closes spring-projectsgh-2000

Signed-off-by: wonderfulrosemari <whwlsgur1419@naver.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 18, 2026
@rwinch
Copy link
Member

rwinch commented Feb 19, 2026

Thank you for your contribution @wonderfulrosemari

Is this causing you any particular issues? I ask because, while not deprecated (we still fix bugs), generally XML Namespace support is in maintenance mode (no new features) in favor of Java Configuration.

@rwinch rwinch added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 19, 2026
@rwinch rwinch self-assigned this Feb 19, 2026
@rwinch
Copy link
Member

rwinch commented Feb 20, 2026

Thank you again for the submission. After discussing this with the team, I'm going to close this because XML Namespace support is effectively in maintenance mode. This means that while we will fix bugs, we do not expect to enhance it going forward.

@rwinch rwinch closed this Feb 20, 2026
@rwinch rwinch added status: invalid An issue that we don't feel is valid in: config An issue in spring-security-config and removed status: waiting-for-feedback We need additional information before we can continue labels Feb 20, 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 status: invalid An issue that we don't feel is valid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEC-1767: Allow to change Authentication Failure Handler in security namespace for SessionManagementFilter

3 participants