October 2018
Intermediate to advanced
590 pages
15h 5m
English
Spring Security is very flexible and highly customizable. We can replace the built-in implementation with our own implementation easily. We sometimes do not need to write everything from scratch because Spring Security does a very good job at abstraction. For our AuthenticationFilter implementation, we can extend from AbstractAuthenticationProcessingFilter, which is also the base class that the built-in UsernamePasswordAuthenticationFilter extends.
Since AuthenticationFilter deals with API requests, we will put it inside the com.taskagile.web.apis.authenticate package. Here is how AuthenticationFilter looks:
...public class AuthenticationFilter extends AbstractAuthenticationProcessingFilter { ... public ...Read now
Unlock full access