-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Added the documentation for the success/failure handlers #6556
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
Conversation
|
||
Symfony defines an event called ``security.interactive_login`` that lets you | ||
customize the behavior of the login process. The main differences between this | ||
event and the login handlers are XXXX and YYYY. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not ready...
Related: #6493 |
I've completed the last section with the excellent explanations suggested by @stof. This is now ready for the final review. Thanks! |
How to Customize the Success and Failure Login Handlers | ||
======================================================= | ||
|
||
After the users successfully log in in your application, they are redirected to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, log in to
your application
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks.
I've added all the config formats. |
|
||
.. code-block:: xml | ||
|
||
<!-- src/AppBundle/Resources/config/services.xml --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/config/services.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Damn copy+paste :( Fixed.
👍 |
{ | ||
public function onAuthenticationSuccess(Request $request, TokenInterface $token) | ||
{ | ||
// do something... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just use // ...
here
The coolest feature about success/failure handlers is missing here: If your handler contains a Can you please update the article to explain these methods? |
More information: symfony/symfony#11993 Possible options that are passed are https://github.com/symfony/symfony/pull/11993/files#diff-9b954183740a2ac73ab37d444032fccdR48 |
I'm closing this because it's clear that I'm trying to explain something that I don't fully understand. I'm sorry. |
This fixes #4258. I've used 2.7 as the base branch because Fabien said these handlers where not very useful before 2.6.
It's still a rough draft. I need help to complete the last section. Thanks!