【问题标题】:Spring boot actuator auditevents with custom ReactiveAuthenticationManager带有自定义 ReactiveAuthenticationManager 的 Spring 启动执行器审计事件
【发布时间】:2019-07-12 22:35:11
【问题描述】:

我已经设置了自己的ReactiveAuthenticationManager

public class CustomReactiveAuthenticationManager implements ReactiveAuthenticationManager

然后在 SecurityWebFilterChain 中:

.authenticationManager(this.authenticationManager)

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

{"events":[]}

即使我使用自定义 ReactiveAuthenticationManager,我还需要更改哪些内容才能获得审核事件?

【问题讨论】:

    标签: spring-boot spring-security spring-webflux spring-boot-actuator


    【解决方案1】:

    这不是您的自定义AuthenticationManager 的问题。这是 Spring Security 的一个限制。在撰写本文时,使用反应式 Spring Security 时不会发布事件。 this Spring Security issue 中正在跟踪一项将消除限制的增强功能。

    【讨论】:

      猜你喜欢
      • 2016-06-02
      • 2016-02-10
      • 2015-03-01
      • 2020-03-21
      • 2015-04-18
      • 1970-01-01
      • 1970-01-01
      • 2013-11-09
      • 2013-03-03
      相关资源
      最近更新 更多