Spring 使用自定义 ReactiveAuthenticationManager 启动执行器 auditevents

Spring boot actuator auditevents with custom ReactiveAuthenticationManager

我已经设置了自己的 ReactiveAuthenticationManager

public class CustomReactiveAuthenticationManager implements ReactiveAuthenticationManager

然后在 SecurityWebFilterChain 中:

.authenticationManager(this.authenticationManager)

但是在这个设置之后我没有在执行器中得到任何东西 auditevents 端点:

{"events":[]}

即使我使用自定义 ReactiveAuthenticationManager,我也需要更改什么才能拥有审核事件?

这不是您的自定义问题 AuthenticationManager。这是 Spring 安全性的限制。在撰写本文时,使用反应式 Spring 安全性时不会发布事件。 this Spring Security issue.

中正在跟踪将消除限制的增强功能