-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Allow switching to another user when already switched #35839
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
chalasr
commented
Feb 23, 2020
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 3.4 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Tickets | Fix #34690 |
License | MIT |
Doc PR | - |
07d4598
to
ee219ef
Compare
src/Symfony/Bundle/SecurityBundle/Resources/config/security_listeners.xml
Outdated
Show resolved
Hide resolved
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.
thx
src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Exception/AlreadySwitchedException.php
Outdated
Show resolved
Hide resolved
91d8855
to
14199dd
Compare
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.
Great, thanks!
What would be the drawback of always allowing the switch? Adding a new option should be thought twice. |
We've discussed a bit about this with @chalasr. It's not easy to provide a satisfying default out-of-the-box |
1564985
to
a17cdc3
Compare
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.
Would work as a bug fix on 4.4 to me.
@nicolas-grekas Did you mean 3.4? |
3.4 then yes :) |
89effcf
to
5b5848c
Compare
5b5848c
to
0353077
Compare
Rebased. Failing build expected with deps=high |
Thank you @chalasr. |
Thanks for merging it into 3.4 |