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