6

Spring Security 认证成功后eventPublisher为null导致InteractiveAuthenticationSucce...

 3 years ago
source link: https://www.oschina.net/question/4444703_2323509
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Spring Security 认证成功后eventPublisher为null导致InteractiveAuthenticationSuccessEvent不能触发

秋吉贰 发布于 今天 19:57

新写了一个认证的filter,和UsernamePasswordAuthenticationFilter共存。其他的都可以了,但是在认证成功后,使用UsernamePasswordAuthenticationFilter 认证,则eventPublisher不为null。但是用新写认证filter发现 eventPublisher; 这个是null,导致注册的事件无法执行。对比图:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK