I’m trying to create a custom username password authentication filter since I need to validate passwords from two different sources. I’m using Spring Boot 1.2.1 and Java co
The documentation for AbstractAuthenticationProcessingFilter
states that you must set an AuthenticationManager
.
I suggest you try adding the following code inside your CustomUsernamePasswordAuthenticationFilter
class:
@Override
@Autowired
public void setAuthenticationManager(AuthenticationManager authenticationManager) {
super.setAuthenticationManager(authenticationManager);
}
I actually got past the error. I just had to remove the @Component
annotation from my custom filter.