Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Security] Remove everything related to the deprecated authentication manager#41613
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Security] Remove everything related to the deprecated authentication manager#41613
Uh oh!
There was an error while loading.Please reload this page.
Conversation
...Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Core/Authorization/ExpressionLanguageProvider.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Core/Authorization/Voter/AuthenticatedVoter.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
db6d1bc
to133675b
Comparesrc/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
133675b
toea1395b
CompareUh oh!
There was an error while loading.Please reload this page.
ea1395b
toc5d60fb
Compare
chalasr left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
🎉🎉🎉 Thanks Wouter!
Some minor comments below.
Let's split and share the deprecation work that needs to be done for 5.4 before merging this one.
Some minor comments
src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twigShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…ion on no token" (wouterj)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate "always authenticate" and "exception on no token"| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | yes| Tickets | Ref#41613| License | MIT| Doc PR | n/aCommits-------4bba287 [Security] Deprecate "always authenticate" and "exception on no token"
…)` (chalasr)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate `TokenInterface::isAuthenticated()`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | todoFrom#41613 (comment)> all unauthenticated token use-cases have been replaced with passports (and the removal of anonymous). This means that if you have a token, it should always be authenticated.Commits-------33b8fbd [Security] Deprecate `TokenInterface::isAuthenticated()` and `setAuthenticated()`
…)` (chalasr)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate `TokenInterface::isAuthenticated()`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | todoFromsymfony/symfony#41613 (comment)> all unauthenticated token use-cases have been replaced with passports (and the removal of anonymous). This means that if you have a token, it should always be authenticated.Commits-------33b8fbdd8a [Security] Deprecate `TokenInterface::isAuthenticated()` and `setAuthenticated()`
…)` (chalasr)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate `TokenInterface::isAuthenticated()`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | todoFromsymfony/symfony#41613 (comment)> all unauthenticated token use-cases have been replaced with passports (and the removal of anonymous). This means that if you have a token, it should always be authenticated.Commits-------33b8fbdd8a [Security] Deprecate `TokenInterface::isAuthenticated()` and `setAuthenticated()`
…)` (chalasr)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate `TokenInterface::isAuthenticated()`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | todoFromsymfony/symfony#41613 (comment)> all unauthenticated token use-cases have been replaced with passports (and the removal of anonymous). This means that if you have a token, it should always be authenticated.Commits-------33b8fbdd8a [Security] Deprecate `TokenInterface::isAuthenticated()` and `setAuthenticated()`
…)` (chalasr)This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate `TokenInterface::isAuthenticated()`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | todoFromsymfony/symfony#41613 (comment)> all unauthenticated token use-cases have been replaced with passports (and the removal of anonymous). This means that if you have a token, it should always be authenticated.Commits-------33b8fbdd8a [Security] Deprecate `TokenInterface::isAuthenticated()` and `setAuthenticated()`
src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…rity factories (wouterj)This PR was merged into the 5.4 branch.Discussion----------[SecurityBundle] Create a smooth upgrade path for security factories| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | yes| Tickets | Ref#41613 (comment)| License | MIT| Doc PR | -This change allows removing `SecurityFactoryInterface` in Symfony 6.I've also changed the discrete ordering using "listener positions" to the much more common continuous ordering using priorities. I feel like priorities are much more self-explanatory.Commits-------7385fd5 [SecurityBundle] Create a smooth upgrade path for security factories
This PR was merged into the 5.4 branch.Discussion----------[Security] Deprecate legacy signatures| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | yes| Tickets | Ref#41613| License | MIT| Doc PR | n/aDeprecates the left-over legacy constructor signatures in the Security system.Commits-------bbc00c8 [Security] Deprecate legacy signatures
c5d60fb
to199c99c
Compare1c241ff
to37ea08f
Comparewouterj commentedAug 17, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🟢 !
|
026a480
toc242a87
CompareThere 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.
Only minor things on my side after a quick review.
Thank you so much for working on this!
...Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
...ecurityBundle/Tests/Functional/Bundle/RememberMeBundle/Security/UserChangingUserProvider.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/PasswordHasher/Tests/Hasher/UserPasswordHasherTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
4934d38
to24ad008
Compare24ad008
to922c131
CompareThank you@wouterj. |
🎉 thank you for eviewing and merging! |
This PR was merged into the 6.0 branch.Discussion----------[SecurityBundle] Remove forgotten unused code| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Forgotten in#41613Commits-------9d35f00 [SecurityBundle] Remove forgotten unused code
…ute from the XSD (MatTheCat)This PR was merged into the 6.4 branch.Discussion----------[SecurityBundle] Remove unused memory users’ `name` attribute from the XSD| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | N/A| License | MITThe related config has been deprecated in#40403 and removed in#41613.Commits-------656f498 [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD
…ibute from the XSD (MatTheCat)This PR was merged into the 6.4 branch.Discussion----------[SecurityBundle] Remove unused memory users’ `name` attribute from the XSD| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | Fixcdb8354| License | MIT#57520 has been reverted because> [The] change […] risks that someone receives errors on the next patch release if their XML config still makes use of the now removed attribute.But nobody could use it since v6.0: as#41613 removed the BC layer, the config would crash.Keeping `name` in the XSD for 6.4, 7.0 and 7.1 branches means people using these versions would have their IDE suggesting an attribute which would make their app crash.Commits-------ed5c26c [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD
…tTheCat)This PR was merged into the 6.4 branch.Discussion----------[SecurityBundle] Remove `AnonymousFactory` leftovers| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | N/A| License | MITThe `AnonymousFactory` was removed in#41613 but the related configuration was still referenced in the `SecurityExtension`.(Not sure about the target branch since this isn’t a bugfix.)Commits-------0bd8eb2 [SecurityBundle] Remove `AnonymousFactory` leftovers
Uh oh!
There was an error while loading.Please reload this page.
This PR removes all deprecations from the security packages.
Some previously deprecated methods are now marked as
@internal
(e.g.loadUserByUsername()
in the LDAP user provider) in order to remain compatible with Symfony 5.4.