Developers’ Posts

Spring Boot Security Configuration, practically explained – Part3: LDAP Bind Authentication
|

Spring Boot Security Configuration, practically explained – Part3: LDAP Bind Authentication

This is the 3rd in a series of posts which focuses on LDAP Authentication, but does not provide any detail on the LDAP itself. Our aim is to demonstrate how you can implement LDAP Authentication with Spring Boot framework, by using either a configurer (via the the ldapAuthentication()) or an authentication provider Bean (the LdapAuthenticationProvider) in a classic Custom Security Configuration class, extending
the WebSecurityConfigurerAdapter

Spring Boot Security: The WebSecurityConfigurerAdapter is not the case anymore
|

Spring Boot Security: The WebSecurityConfigurerAdapter is not the case anymore

Using a Custom Security Configuration class based on WebSecurityConfigurerAdapter should not be a case for you anymore. This is because it has been deprecated since Spring Security 5.7.0-M2.
However, if you wish to continue using it for a while, without seeing the warning curly yellow lines in your IDE, then here is a quick solution.