Infinite loop in Spring Boot when entering incorrect credentials for Active Directory authentication
I’m working on a Spring Boot application with Spring Security and Active Directory for authentication and I’ve set up a virtual machine with Windows Server 2019 to connect to my Active Directory. The authentication works find when I enter valid credentials, however, when I enter incorrect credentials I encounter an infinite loop of errors, so here’s my WebSecurityConfig: