首页 > 解决方案 > 带有自定义 ReactiveAuthenticationManager 的 Spring Boot 执行器审计事件

问题描述

我已经设置了我自己的ReactiveAuthenticationManager

public class CustomReactiveAuthenticationManager implements ReactiveAuthenticationManager

然后在 SecurityWebFilterChain 中:

.authenticationManager(this.authenticationManager)

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

{"events":[]}

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

标签: spring-bootspring-securityspring-webfluxspring-boot-actuator

解决方案


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


推荐阅读