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.
Login to add comment
Other posts in this group

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

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

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é

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

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

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

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