See: - https://github.com/spring-projects/spring-security/issues/9012 - https://github.com/spring-projects/spring-security/pull/10685