Related to #10950

Comment From: marcusdacoregio

Fixed via https://github.com/spring-projects/spring-security/commit/70b67cd2f11a342817843f1bc926759196af3e15