Allow security AuditListener overrides
Introduce `AbstractAuthenticationAuditListener` and `AbstractAuthorizationAuditListener` classes so that users can extended them to replace the auto-configured defaults. Closes gh-4406
This commit is contained in:
committed by
Phillip Webb
parent
564cbfe96c
commit
a0c696b17b
@@ -1324,7 +1324,9 @@ channel and any subscribers you need).
|
||||
Spring Boot Actuator has a flexible audit framework that will publish events once Spring
|
||||
Security is in play ('`authentication success`', '`failure`' and '`access denied`'
|
||||
exceptions by default). This can be very useful for reporting, and also to implement a
|
||||
lock-out policy based on authentication failures.
|
||||
lock-out policy based on authentication failures. To customize published security events
|
||||
you can provide your own implementations of `AbstractAuthenticationAuditListener` and
|
||||
`AbstractAuthorizationAuditListener`.
|
||||
|
||||
You can also choose to use the audit services for your own business events. To do that
|
||||
you can either inject the existing `AuditEventRepository` into your own components and
|
||||
|
||||
Reference in New Issue
Block a user