Expected Behavior spring security version:5.7.6 custom UsernamePasswordAuthenticationFilter unable obtain HttpSecurity configure Initialize
FormLoginConfigurer‘s constructor newly added UsernamePasswordAuthenticationFilter type class incoming parameter
add a constructor
public FormLoginConfigurer(UsernamePasswordAuthenticationFilter filter,url) {
super(filter, url);
usernameParameter("username");
passwordParameter("password");
}
this method call
addFilter method insert custom UsernamePasswordAuthenticationFilter
Current Behavior
default new UsernamePasswordAuthenticationFilter()
Make Custom UsernamePasswordAuthenticationFilter use HttpSecurity configure Initialize Context
Comment From: sjohnr
@chengweng thanks for opening your first issue! However, I am having a very hard time understanding your suggestion. I noticed you also commented on #11909. For that reason, I believe you're possibly reporting something very similar and I'm going to close for the same reason as mentioned in this comment.
If I'm simply misunderstanding you, I do apologize. However, if you believe there is a bug in verison 5.7.6, please provide a minimal, reproducible sample and I'll be happy to take a further look.
Comment From: chengweng
custom CustomLoginAuthenticationFilter extends AbstractAuthenticationProcessingFilter,CustomLoginAuthenticationFilter Unable to inject HttpSecurity configure,
CustomLoginAuthenticationFilter.txt
Comment From: GeTOUO
这么实用的增强为什么关掉了呢。目前对于UsernamePasswordAuthenticationFilter的自定义不是很方便