This is needed in order to re-add support for CAS.

See https://github.com/spring-projects/spring-security/issues/10347 for context.