Upgrade to [Spring Security 7.0.0-M1](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1).