Description
** Versions **
- Spring boot version: 2.7.1
- Spring security 5.7
- JDK version: 1.11
I have previously added an issue at spring-projects/spring-boot#31836 and they redirect to possible spring-security bug or wrong configuration with the authenticationManagerBuilder
Describe the bug
I'm moving from old authentication style to the new authentication style based on the article published in the blog spring-security-without-the-websecurityconfigureradapter -> before adding the issue I have looking in stackoverflow for similar issue, here in closed issues, dead loops etc... but I have not been able to find anything in the same direction.
Everythings goes fine, except when I introduce bad credentials, then the application seems go into a loop until it is raised an java.lang.StackOverflowError: null ( here the full error stack trace error.txt)
To Reproduce
I have created a sample code at https://github.com/darkman97i/spring-security-test ( in the sample I'm using two providers inmemory and jdbc. Also I included h2 database with user credentials into for a quick test ).
Thanks for your time