8000 [Security] Mention customizing successful and failed authentication · symfony/symfony-docs@ef46ae2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef46ae2

Browse files
[Security] Mention customizing successful and failed authentication
1 parent e886b53 commit ef46ae2

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
@@ -1602,6 +1602,20 @@ and set the ``limiter`` option to its service ID:
16021602
;
16031603
};
16041604
1605+
Customize Successful And Failed Authentication
1606+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607+
1608+
If you want to customize the success or failure handling process, instead of
1609+
overwriting the respective listeners globally, you can set custom success
1610+
failure handlers by implementing the
1611+
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface`
1612+
or the
1613+
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface`.
1614+
1615+
If you want more information about this, you can have a look at the section
1616+
about
1617+
:ref:`customizing your success handler<login-link_customize-success-handler>`.
1618+
16051619
.. _security-logging-out:
16061620

16071621
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)
0