Closed
Description
There are a lot of reports about a StackOverflowError
when exposing the AuthenticationManager
as a bean and using it inside a custom authentication mechanism.
This ticket should be used to centralize the reports and provide any feedback during the analysis.
See:
- Security raise StackOverflowError using authenticationManagerBuilder when user have wrong credentials #11609
StackOverflowException
when adapter'sAuthenticationManager
gets published as a bean #10419- Deprecate WebSecurityConfigurerAdapter #10822 (comment)
- java.lang.StackOverflowError: null when an invalid token is sent to an oauth2ResourceServer #8369
- Fix Infinite recursion WebSecurityConfigurerAdapter.java #11071
- https://stackoverflow.com/questions/73892406/already-existing-securityfilterchain-is-preventing-my-configuration-on-spring-se/73895991#73895991
- https://stackoverflow.com/questions/74633891/spring-boot-microservices-spring-security-servicetest-and-controllertest-for
- https://stackoverflow.com/questions/74694980/authenticationmanager-authenticate-throws-java-lang-stackoverflowerror-null-w