Spring: Customizing the “weird” UsernamePasswordAuthenticationFilter
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.