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
Copy file name to clipboardExpand all lines: components/security/authentication.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -289,9 +289,9 @@ Authentication Success and Failure Events
289
289
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290
290
291
291
When a provider authenticates the user, a ``security.authentication.success``
292
-
event is dispatched. But beware - this event will fire, for example, on *every*
293
-
request if you have session-based authentication. See ``security.interactive_login``
294
-
below if you need to do something when a user *actually* logs in.
292
+
event is dispatched. But beware - this event may fire, for example, on *every*
293
+
request if you have session-based authentication, if ``always_authenticate_before_granting`` is enabled or if token is not authenticated before AccessListener is invoked.
294
+
See ``security.interactive_login`` below if you need to do something when a user *actually* logs in.
295
295
296
296
When a provider attempts authentication but fails (i.e. throws an ``AuthenticationException``),
297
297
a ``security.authentication.failure`` event is dispatched. You could listen on
0 commit comments