A case-study using a Custom implementation of the “weird” UsernamePasswordAuthenticationFilter, as @Component. This is actually the case when an auto-created bean (e.g.: an AuthenticationManager instance in a @Configuration annotated class) is required in a @Component annotated class (e.g.: a custom filter extending the UsernamePasswordAuthenticationFilter filter), and then, the bean of the @Component custom filter class is required in the @Configuration class.
A thorough step-by-step guide on how you can implement a custom filter, based on the “weird” UsernamePasswordAuthenticationFilter, for handling both: Basic Authentication and JWT Bearer token Authorization.
A deeper intro about what is behind the scenes of the Spring authentication/authorization process, integrating also concepts like filters, tokens, customizations for an Authentication Manager or an Authentication Provider, and so on.
Pass from deprecated WebSecurityConfigurerAdapter to the new component-based (bean-based) security configuration, in an easy and understandable way.
Installing the Tomcat APR native library allows us to work smoothly with both: the JSSE and the OpenSSL implementation.
APR mainly is a supporting library for the Apache web server, offering also some more encasements and functionalities. In this post, you can see the process of installing it in a Debian/Linux distribution system.
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
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.
This is a very very simple, yet well-working, Spring Boot REST API project, demonstrating the fundamental building blocks of such a project. The idea is to motivate beginner learners to start digging deeper after they can see how easily they can implement and see running a Spring Boot Rest API service.