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 @@ -1701,6 +1701,19 @@ and set the ``limiter`` option to its service ID:
1701
1701
;
1702
1702
};
1703
1703
1704
+ Customize Successful and Failed Authentication Behavior
1705
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1706
+
1707
+ If you want to customize how the successful or failed authentication process is
1708
+ handled, you don't have to overwrite the respective listeners globally. Instead,
1709
+ you can set custom success failure handlers by implementing the
1710
+ :class: `Symfony\\ Component\\ Security\\ Http\\ Authentication\\ AuthenticationSuccessHandlerInterface `
1711
+ or the
1712
+ :class: `Symfony\\ Component\\ Security\\ Http\\ Authentication\\ AuthenticationFailureHandlerInterface `.
1713
+
1714
+ Read :ref: `how to customize your success handler <login-link_customize-success-handler >`
1715
+ for more information about this.
1716
+
1704
1717
Login Programmatically
1705
1718
----------------------
1706
1719
@@ -2840,7 +2853,7 @@ Frequently Asked Questions
2840
2853
Sometimes authentication may be successful, but after redirecting, you're
2841
2854
logged out immediately due to a problem loading the ``User `` from the session.
2842
2855
To see if this is an issue, check your log file (``var/log/dev.log ``) for
2843
- the log message:
2856
+ the log message.
2844
2857
2845
2858
**Cannot refresh token because user has changed **
2846
2859
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