8000 [Security] Mention customizing successful and failed authentication by alexandre-daubois · Pull Request #18931 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Security] Mention customizing successful and failed authentication #18931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,20 @@ and set the ``limiter`` option to its service ID:
;
};

Customize Successful and Failed Authentication Behavior
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you want to customize the success or failure handling process, instead of
overwriting the respective listeners globally, you can set custom success
failure handlers by implementing the
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface`
or the
:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationFailureHandlerInterface`.

If you want more information about this, you can have a look at the section
about
:ref:`customizing your success handler <login-link_customize-success-handler>`.

.. _security-logging-out:

Logging Out
Expand Down
2 changes: 2 additions & 0 deletions security/login_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ from the first hash value and the ``kernel.secret`` container parameter. This
allows Symfony to sign this final hash, which is contained in the login URL.
The final hash is also a Base64 encoded SHA-256 hash.

.. _login-link_customize-success-handler:

Customizing the Success Handler
-------------------------------

Expand Down
0