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

Created 4y | Jun 17, 2021, 7:20:08 AM


Login to add comment

Other posts in this group

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

Apr 8, 2025, 9:10:13 AM | 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

Apr 6, 2025, 8:30:10 AM | Symfony
Symfony meetup: Join Nicolas Grekas in Tunis on April 12th!

Nous sommes heureux de vous annoncer le retour des meetups Symfony à Tunis !🎉 Rejoignez dès maintenant le groupe "Symfony User group Tunis" pour suivre les actualités et futurs meetup de la communauté

Apr 2, 2025, 7:10:06 AM | Symfony
A Week of Symfony #952 (March 24–30, 2025)

This week, Symfony 6.4.20 and 7.2.5 maintenance versions were released. In addition, Symfony successfully celebrated the SymfonyLive Paris 2025 conference and continued preparations for next week's Sy

Mar 30, 2025, 9:30:09 AM | Symfony
Symfony 6.4.20 released

Symfony 6.4.20 has just been released. Here is the list of the most important changes since 6.4.19:

bug #60054 [Form] Use duplicate_preferred_choices to set value of ChoiceType (@aleho)

bug #5985

Mar 28, 2025, 3:40:28 PM | Symfony
Symfony 7.2.5 released

Symfony 7.2.5 has just been released. Here is the list of the most important changes since 7.2.4:

bug #60054 [Form] Use duplicate_preferred_choices to set value of ChoiceType (@aleho)

bug #60026

Mar 28, 2025, 3:40:27 PM | Symfony
SymfonyLive Berlin 2025 starts in a week!

SymfonyLive Berlin 2025 is almost here! Join us next week for an exciting event filled with fresh talks, inspiring speakers, and everything you need to make the most of this incredible gatheri

Mar 26, 2025, 8:10:11 AM | Symfony