Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/security/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ Authentication Success and Failure Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When a provider authenticates the user, a ``security.authentication.success``
event is dispatched. But beware - this event will fire, for example, on *every*
request if you have session-based authentication. See ``security.interactive_login``
below if you need to do something when a user *actually* logs in.
event is dispatched. But beware - this event may fire, for example, on *every*
request if you have session-based authentication, if ``always_authenticate_before_granting`` is enabled or if token is not authenticated before AccessListener is invoked.
See ``security.interactive_login`` below if you need to do something when a user *actually* logs in.

When a provider attempts authentication but fails (i.e. throws an ``AuthenticationException``),
a ``security.authentication.failure`` event is dispatched. You could listen on
Expand Down