Skip to content

Commit 809ecd4

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [Security] Add deprecation notices about Guard authenticators
2 parents 1e19b33 + 08c643c commit 809ecd4

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

security.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ you to control *every* part of the authentication process (see the next section)
462462
Guard Authenticators
463463
~~~~~~~~~~~~~~~~~~~~
464464

465+
.. deprecated:: 5.3
466+
467+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
468+
:doc:`new authenticator-based system </security/authenticator_manager>`.
469+
465470
A Guard authenticator is a class that gives you *complete* control over your
466471
authentication process. There are many different ways to build an authenticator;
467472
here are a few common use-cases:

security/auth_providers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Built-in Authentication Providers
22
=================================
33

4-
If you need to add authentication to your app, we recommend using
5-
:doc:`Guard authentication </security/guard_authentication>` because it gives you
6-
full control over the process.
4+
If you need to add authentication to your app, we recommend using the
5+
:doc:`new authenticator-based system </security/authenticator_manager>` because
6+
it gives you full control over the process.
77

88
But, Symfony also offers a number of built-in authentication providers: systems
99
that are easier to implement, but harder to customize. If your authentication

security/custom_authentication_provider.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ How to Create a custom Authentication Provider
77
.. caution::
88

99
Creating a custom authentication system is hard, and almost definitely
10-
**not** needed. Instead, see :doc:`/security/guard_authentication` for a
11-
simple way to create an authentication system you will love. Do **not**
12-
keep reading unless you want to learn the lowest level details of
13-
authentication.
10+
**not** needed. Instead, see the
11+
:doc:`new authenticator-based system </security/authenticator_manager>`
1412

1513
Symfony provides support for the most
1614
:doc:`common authentication mechanisms </security/auth_providers>`. However, your

security/guard_authentication.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Custom Authentication System with Guard (API Token Example)
55
===========================================================
66

7+
.. deprecated:: 5.3
8+
9+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
10+
:doc:`new authenticator-based system </security/authenticator_manager>`.
11+
712
Guard authentication can be used to:
813

914
* :doc:`Build a Login Form </security/form_login_setup>`
@@ -14,11 +19,6 @@ Guard authentication can be used to:
1419
and many more. In this example, we'll build an API token authentication
1520
system, so we can learn more about Guard in detail.
1621

17-
.. tip::
18-
19-
A :doc:`new authenticator-based system </security/authenticator_manager>`
20-
was introduced in Symfony 5.1, which will eventually replace Guards in Symfony 6.0.
21-
2222
Step 1) Prepare your User Class
2323
-------------------------------
2424

security/multiple_guard_authenticators.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
How to Use Multiple Guard Authenticators
22
========================================
33

4+
.. deprecated:: 5.3
5+
6+
Guard authenticators are deprecated since Symfony 5.3 in favor of the
7+
:doc:`new authenticator-based system </security/authenticator_manager>`.
8+
49
The Guard authentication component allows you to use many different
510
authenticators at a time.
611

0 commit comments

Comments
 (0)