You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #11457 #21571 updated "Authentication Success and Failure Events" section (oleg-andreyev)
This PR was merged into the 4.4 branch.
Discussion
----------
#21571 updated "Authentication Success and Failure Events" section
Updated "Authentication Success and Failure Events"
`security.authentication.success` can be dispatched in the following cases:
- if `always_authenticate_before_granting` is enabled and `isGranted` is called
- if a token is not authenticated before `AccessListener` is invoked
- if customer submitted credentials (actual authentication)
symfony/symfony#21571
Commits
-------
dc91bfd #21571 updated "Authentication Success and Failure Events" section
Copy file name to clipboardExpand all lines: components/security/authentication.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -290,9 +290,9 @@ Authentication Success and Failure Events
290
290
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291
291
292
292
When a provider authenticates the user, a ``security.authentication.success``
293
-
event is dispatched. But beware - this event will fire, for example, on *every*
294
-
request if you have session-based authentication. See ``security.interactive_login``
295
-
below if you need to do something when a user *actually* logs in.
293
+
event is dispatched. But beware - this event may fire, for example, on *every*
294
+
request if you have session-based authentication, if ``always_authenticate_before_granting`` is enabled or if token is not authenticated before AccessListener is invoked.
295
+
See ``security.interactive_login`` below if you need to do something when a user *actually* logs in.
296
296
297
297
When a provider attempts authentication but fails (i.e. throws an ``AuthenticationException``),
298
298
a ``security.authentication.failure`` event is dispatched. You could listen on
0 commit comments