Commit c9ad225
committed
bug symfony#59342 [SecurityBundle] Do not pass traceable authenticators to
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 symfony#59341
| License | MIT
Since symfony#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`security.helper (MatTheCat)File tree
2 files changed
+9
-5
lines changed- src/Symfony/Bundle/SecurityBundle
- DependencyInjection
- Tests/DependencyInjection
2 files changed
+9
-5
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
927 | 931 | | |
928 | 932 | | |
929 | 933 | | |
| |||
0 commit comments