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

Établi 4y | 17 juin 2021, 07:20:08


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

SymfonyOnline June 2025: How Doctrine Events Ruined My Day(s)

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

25 avr. 2025, 13:40:15 | Symfony
Introducing A Streaming AMQP Transport for Symfony Messenger

Symfony's Messenger component makes it easy to build message-driven applications. However, developers using symfony/amqp-messenger have long faced a limitation: it relies on polling (get()), which can

25 avr. 2025, 09:10:02 | Symfony
SymfonyLive Berlin 2025: Recap and Replay !

SymfonyLive Berlin 2025 took place just 3 weeks ago!

A huge thank you to everyone who joined us!🔥 The conference brought together the local Symfony community in the heart of Berlin for two da

24 avr. 2025, 14:30:18 | Symfony
New in Symfony 7.3: Global Translation Parameters

Contributed by Hubert Lenoir in

24 avr. 2025, 07:30:24 | Symfony
SymfonyOnline June 2025: FormFlow: Build Stunning Multistep Forms

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

23 avr. 2025, 15:20:21 | Symfony
New in Symfony 7.3: Assets Pre-Compression

Contributed by Kévin Dunglas in

23 avr. 2025, 08:20:31 | Symfony
SymfonyOnline June 2025: Inside a Financial App Breach: Debugging a Million-Dollar Bug

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

22 avr. 2025, 13:50:03 | Symfony