You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #41247 [Security] Deprecate the old authentication mechanisms (chalasr)
This PR was merged into the 5.3-dev branch.
Discussion
----------
[Security] Deprecate the old authentication mechanisms
| Q | A
| ------------- | ---
| Branch? | 5.3
| Bug fix? | no
| New feature? | no
| Deprecations? | yes/
| Tickets | #39308
| License | MIT
| Doc PR | todo
Now that the authenticator system proven working well and is considered stable, we can deprecate the old authentication listeners as well as the Guard component (+ integrations).
Commits
-------
0bb3964 [Security] Deprecate the old authentication mechanisms
`UsernamePasswordFormAuthenticationListener`, `UsernamePasswordJsonAuthenticationListener` and `X509AuthenticationListener`
215
+
from security-http, use the new authenticator system instead
216
+
* Deprecate the Guard component, use the new authenticator system instead
208
217
209
218
SecurityBundle
210
219
--------------
@@ -218,6 +227,10 @@ SecurityBundle
218
227
* Deprecate the `security.user_password_encoder.generic` service, the `security.password_encoder` and the `Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface` aliases,
219
228
use `security.user_password_hasher`, `security.password_hasher` and `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` instead
220
229
* Deprecate the public `security.authorization_checker` and `security.token_storage` services to private
230
+
* Not setting the `enable_authenticator_manager` config option to `true` is deprecated
231
+
* Deprecate the `security.authentication.provider.*` services, use the new authenticator system instead
232
+
* Deprecate the `security.authentication.listener.*` services, use the new authenticator system instead
233
+
* Deprecate the Guard component integration, use the new authenticator system instead
`UsernamePasswordFormAuthenticationListener`, `UsernamePasswordJsonAuthenticationListener` and `X509AuthenticationListener`
303
+
from security-http, use the new authenticator system instead
304
+
* Remove the Guard component, use the new authenticator system instead
296
305
297
306
SecurityBundle
298
307
--------------
@@ -304,6 +313,10 @@ SecurityBundle
304
313
* Remove the `security.user_password_encoder.generic` service, the `security.password_encoder` and the `Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface` aliases,
305
314
use `security.user_password_hasher`, `security.password_hasher` and `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` instead
306
315
* The `security.authorization_checker` and `security.token_storage` services are now private
316
+
* Not setting the `enable_authenticator_manager` option to `true` now throws an exception
317
+
* Remove the `security.authentication.provider.*` services, use the new authenticator system instead
318
+
* Remove the `security.authentication.listener.*` services, use the new authenticator system instead
319
+
* Remove the Guard component integration, use the new authenticator system instead
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,10 @@ CHANGELOG
17
17
* Deprecate the `security.user_password_encoder.generic` service, the `security.password_encoder` and the `Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface` aliases,
18
18
use `security.user_password_hasher`, `security.password_hasher` and `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` instead
19
19
* Deprecate the public `security.authorization_checker` and `security.token_storage` services to private
20
+
* Not setting the `enable_authenticator_manager` config option to `true` is deprecated
21
+
* Deprecate the `security.authentication.provider.*` services, use the new authenticator system instead
22
+
* Deprecate the `security.authentication.listener.*` services, use the new authenticator system instead
23
+
* Deprecate the Guard component integration, use the new authenticator system instead
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSessionDomainConstraintPassTest.php
+1
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ private function createContainer($sessionStorageOptions)
$this->assertFalse($container->hasAlias('Symfony\Component\Security\Core\User\UserCheckerInterface', 'No user checker alias is registered when custom user checker services are registered'));
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/access_decision_manager_customized_config.php
0 commit comments