New in Symfony 5.3: Guard Component Deprecation

Contributed by Robin Chalas in #41247.

In Symfony 5.1 we introduced a new security authentication system as an experimental feature. Twelve months after its introduction, and having been tested by many developers in real applications, we’re confident enough to mark it as stable and recommend using it in all Symfony applications. That’s why we made the decision to deprecate the old authentication mechanism and also deprecate the Guard component in Symfony 5.3. This change came a bit late (during the Release Candidate phase) and some of you might be unaware of it. The new authentication system changes the internals of Symfony security to make it more extensible and more understandable. It’s mostly backwards compatible with the previous Guard-based system, with some important exceptions:

Anonymous users no longer exist; If you use more than one authenticator, you must configure the authentication entry point; The authentication providers are refactored into Authenticators.

All this is explained in the new authentication system docs, which also explains how to create your own custom authenticator. Thanks to these changes, we’re finally happy with the Symfony security authentication system, and we hope to use it to implement many interesting new features in upcoming Symfony versions.

                Sponsor the Symfony project.

http://feedproxy.google.com/~r/symfony/blog/~3/_sqy0It6BTo/new-in-symfony-5-3-guard-component-deprecation

Vytvořeno 4y | 17. 6. 2021 7:20:08


Chcete-li přidat komentář, přihlaste se

Ostatní příspěvky v této skupině

A Week of Symfony #955 (April 14–20, 2025)

This week, the upcoming Symfony 7.3 version improved the AsAlias attribute by adding a new argument, introduced Clock support for UriSigner, and refined the return type of the ContainerInterface::get(

20. 4. 2025 8:30:06 | Symfony
SymfonyOnline June 2025: Rethinking File Handling in Symfony

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

16. 4. 2025 16:30:02 | Symfony
SymfonyLive Paris 2025: Recap and replay!

SymfonyLive Paris 2025 took place three weeks ago — a big thank you to everyone who joined us! The conference was held entirely in French, and now you can relive the best moments: replays, hig

15. 4. 2025 14:50:24 | Symfony
A Week of Symfony #954 (April 7–13, 2025)

This week, Symfony 7.3 entered its "feature freeze" period in preparation for its release at the end of May 2025. Development activity focused on refining and polishing its new features, including a n

13. 4. 2025 9:40:02 | Symfony
SymfonyOnline June 2025: What's New in Symfony 7.3

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

10. 4. 2025 16:40:34 | Symfony
SymfonyCon Amsterdam 2025: Last days to enjoy early bird tickets!

The international Symfony conference of the year, SymfonyCon Amsterdam 2025, will take place in the Netherlands on November 27 & 28, 2025!

⏳ Early bird registration ends this Wednesday! D

8. 4. 2025 9:10:13 | Symfony
A Week of Symfony #953 (March 31 – April 6, 2025)

This week, the upcoming Symfony 7.3 version entered its feature freeze period to tweak and polish its new features before releasing it at the end of May 2025. In addition, we celebrated the SymfonyLiv

6. 4. 2025 8:30:10 | Symfony