-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle] Do not replace authenticators service by their traceable version #59278
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
MatTheCat
commented
Dec 21, 2024
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 7.2 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Issues | Fix #59071, fix #59091 |
License | MIT |
ac1a9c5
to
e4c66eb
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.
Unfortunate but 👍 Thanks. Hope you checked everything keeps working as expected in the profiler 😇
Hm there shouldn’t be anything unfortunate here; did I miss something? 😅 The |
Just the fact we cannot stick with regular service decoration. |
e4c66eb
to
ffbd82c
Compare
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Show resolved
Hide resolved
c9c19ab
to
111913e
Compare
111913e
to
d44b7af
Compare
Thank you @MatTheCat. |
…security.helper` (MatTheCat) This PR was merged into the 7.2 branch. Discussion ---------- [SecurityBundle] Do not pass traceable authenticators to `security.helper` | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #59341 | License | MIT Since #59278 authenticators are no longer aliases for their traceable version, which means calling `Security::login` with an authenticator ID won’t match its traceable ID, and fail. Plus, `Security::login` using the traceable authenticators meant the profiler could show them as successful while not supporting the request:  This PR fixes these issues by passing the original authenticators to `security.helper`, using their ID as name. Commits ------- c5a2360 [SecurityBundle] Do not pass traceable authenticators to `security.helper`