Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ed41be

Browse filesBrowse files
SimperfitAmrouche Hamza
authored and
Amrouche Hamza
committed
[Security] Dispatch an event when "logout user on change" steps in
1 parent 6c77530 commit 5ed41be
Copy full SHA for 5ed41be

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎components/security/authentication.rst

Copy file name to clipboardExpand all lines: components/security/authentication.rst
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ security.authentication.success ``AuthenticationEvents::AUTHENTICATION_SUCCESS`
283283
security.authentication.failure ``AuthenticationEvents::AUTHENTICATION_FAILURE`` :class:`Symfony\\Component\\Security\\Core\\Event\\AuthenticationFailureEvent`
284284
security.interactive_login ``SecurityEvents::INTERACTIVE_LOGIN`` :class:`Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent`
285285
security.switch_user ``SecurityEvents::SWITCH_USER`` :class:`Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent`
286+
security.logout_on_change ``SecurityEvents::LOGOUT_ON_CHANGE`` :class:`Symfony\\Component\\Security\\Http\\Event\\LogoutOnChangeEvent`
286287
=============================== ================================================ ==============================================================================
287288

288289
Authentication Success and Failure Events
@@ -314,6 +315,13 @@ order to give your user a welcome flash message every time they log in.
314315
The ``security.switch_user`` event is triggered every time you activate
315316
the ``switch_user`` firewall listener.
316317

318+
The ``security.logout_on_change`` event is triggered when a token has been deauthenticated
319+
because of a user change, it can help you doing some clean-up task when a logout has been triggered.
320+
321+
.. versionadded:: 4.3
322+
323+
The ``security.logout_on_change`` event was introduced in Symfony 4.3.
324+
317325
.. seealso::
318326

319327
For more information on switching users, see

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.