File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1652,6 +1652,19 @@ and set the ``limiter`` option to its service ID:
1652
1652
;
1653
1653
};
1654
1654
1655
+ Customize Successful and Failed Authentication Behavior
1656
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657
+
1658
+ If you want to customize how the successful or failed authentication process is
1659
+ handled, you don't have to overwrite the respective listeners globally. Instead,
1660
+ you can set custom success failure handlers by implementing the
1661
+ :class: `Symfony\\ Component\\ Security\\ Http\\ Authentication\\ AuthenticationSuccessHandlerInterface `
1662
+ or the
1663
+ :class: `Symfony\\ Component\\ Security\\ Http\\ Authentication\\ AuthenticationFailureHandlerInterface `.
1664
+
1665
+ Read :ref: `how to customize your success handler <login-link_customize-success-handler >`
1666
+ for more information about this.
1667
+
1655
1668
Login Programmatically
1656
1669
----------------------
1657
1670
@@ -2782,7 +2795,7 @@ Frequently Asked Questions
2782
2795
Sometimes authentication may be successful, but after redirecting, you're
2783
2796
logged out immediately due to a problem loading the ``User `` from the session.
2784
2797
To see if this is an issue, check your log file (``var/log/dev.log ``) for
2785
- the log message:
2798
+ the log message.
2786
2799
2787
2800
**Cannot refresh token because user has changed **
2788
2801
If you see this, there are two possible causes. First, there may be a problem
Original file line number Diff line number Diff line change @@ -668,6 +668,8 @@ from the first hash value and the ``kernel.secret`` container parameter. This
668
668
allows Symfony to sign this final hash, which is contained in the login URL.
669
669
The final hash is also a Base64 encoded SHA-256 hash.
670
670
671
+ .. _login-link_customize-success-handler :
672
+
671
673
Customizing the Success Handler
672
674
-------------------------------
673
675
You can’t perform that action at this time.
0 commit comments