Skip to content

Commit bf19f25

Browse files
committed
minor #18931 [Security] Mention customizing successful and failed authentication (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] Mention customizing successful and failed authentication Fix #4258, part of #15908 Commits ------- 3526742 [Security] Mention customizing successful and failed authentication
2 parents 89ec25a + 3526742 commit bf19f25

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

security.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,20 @@ and set the ``limiter`` option to its service ID:
16081608
;
16091609
};
16101610
1611+
Customize Successful and Failed Authentication Behavior
1612+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1613+
1614+
If you want to customize the success or failure handling process, instead of
1615+
overwriting the respective listeners globally, you can set custom success
1616+
failure handlers by implementing the
1617+
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface`
1618+
or the
1619+
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface`.
1620+
1621+
If you want more information about this, you can have a look at the section
1622+
about
1623+
:ref:`customizing your success handler <login-link_customize-success-handler>`.
1624+
16111625
.. _security-logging-out:
16121626

16131627
Logging Out

security/login_link.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ from the first hash value and the ``kernel.secret`` container parameter. This
693693
allows Symfony to sign this final hash, which is contained in the login URL.
694694
The final hash is also a Base64 encoded SHA-256 hash.
695695

696+
.. _login-link_customize-success-handler:
697+
696698
Customizing the Success Handler
697699
-------------------------------
698700

0 commit comments

Comments
 (0)