-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Inconsistency in security factories #22473
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
Comments
I think you should enable the logout option in the firewall like this: http://symfony.com/doc/current/security.html#logging-out |
This is not what I need. My firewall does not support logging out on a specific route but on certain request attributes which is why I need to adjust the default logout listener. |
I think your stuck :) The bundle config only supports the default logout handler, which is path based :( Can you move forward when decorating Would be nice if we could do something like |
Yeah, I just wonder why nobody else had this problem before which is why I'm kinda feeling I'm missing something 😄 |
We all use path-based logout :P |
I've implemented my own security authentication using a custom factory as e.g. described in the docs here.
I read the source code in
SecurityExtension
carefully and as far as I could see, thanks to the support for factories and theAbstractFactory
I was able to quickly have my own listener, provider etc. registered. Configuring it in mysecurity.yml
was as easy as this:However, this does not work for
logout
. As you can see here,logout
has to be explicitly defined on the firewall so I cannot just use my factory to provide my own logout listeners. I would like to replace the logout listener because I don't want it to check for a path but for request parameters to be present.I just wonder if this is on purpose or if this is actually an inconsistency? Maybe anyone can tell me :-)
The text was updated successfully, but these errors were encountered: