Closed
Description
Quoting wilkinsona's comment at spring-projects/spring-boot#38185 (comment):
Thanks for the sample and for trying the RC. This is a regression in Spring Security 6.2, caused by the changes made for #11783. Please open a Spring Security issue.
It looks like spring-projects/spring-boot#38185 is caused by a bug in Spring Security. Since I also came across it in my project, I took the chance to create the ticket here as suggested.
I'm also quoting the sample POC for convenience: