-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[security] Provide authentification token when using an user checker #50650
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 very much like this idea. Found it odd why it isn't provided in postAuth really. |
So there is not a single way how to obtain the token? |
Welp, this is troublesome :/ |
Thank you for this suggestion. |
Yes |
Thank you for this suggestion. |
Friendly reminder that this issue exists. If I don't hear anything I'll close this. |
Yes |
I opened #57773 which would implement this feature request |
Description
Hi there,
When using a custom user checker, ie:
I would like to be able to get the authentication token. My use case is as follows: I want to make checks less stringent when an impersonation is in progress.
Injecting the Security service does not provide a solution.
I saw that in
Symfony\Component\Security\Http\EventListener\UserCheckerListener
the token could be provided as second parameter to the checkPostAuth method. So it could be posible to achieve some things like knowing if an impersonation is in progress.What do you think about this proposal?
Kind regards,
Fabien
Example
No response
The text was updated successfully, but these errors were encountered: