Check this comment for the rationale https://github.com/spring-projects/spring-security/issues/13561#issuecomment-1644054912 Related: - https://github.com/spring-projects/spring-security/issues/13561