-
Notifications
You must be signed in to change notification settings - Fork 6k
AbstractAuthenticationProcessingFilter produces error when registering a custom UsernamePasswordAuthenticationFilter Bean #8309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report and the simple example to recreate your issue. This is not a bug. The issue was with I sent a PR to your sample repository HomoEfficio/spring-security-practice#1 |
@rwinch Considering the responsibilities and usages of the But for now, the required property What about adding another constructor that receives an |
Thanks for your offer to help! I am ok with adding a constructor that accepts |
Summary
Registering a custom
UsernamePasswordAuthenticationFilter
Bean producesjava.lang.IllegalArgumentException: authenticationManager must be specified
error.Actual Behavior
When I add a custom
UsernamePasswordAuthenticationFilter
in the@Configuration
class that extendsWebSecurityConfigurerAdapter
, Spring application fails to run.Expected Behavior
Spring application should run successfully without error even after the custom
UsernamePasswordAuthenticationFilter
filter Bean has been added.Configuration
Version
spring-boot-2.2.6.RELEASE
spring-security-web:5.2.2.RELEASE
Sample
https://github.com/HomoEfficio/spring-security-practice
The text was updated successfully, but these errors were encountered: