Security
Record each login, login failure, logout and user switch.
Enable the source
The source needs symfony/security-bundle. It needs no attribute: each authentication event is recorded.
symfonycorp_audit_log:
sources:
security: trueThe entries
| Action | Context |
|---|---|
LOGIN | user_identifier, firewall |
LOGIN_FAILURE | firewall, exception: the exception class |
LOGOUT | user_identifier |
SWITCH_USER | target_user: the user that is impersonated |
A LOGIN_FAILURE entry does not have the identifier that the user typed. So you cannot count the failures of one account.
With the user context provider, each entry made during a user switch also has impersonator_identifier, the original user.