Skip to content

Commit dfae01d

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Security] Deprecate always_authenticate_before_granting option
2 parents 1a73382 + b45137d commit dfae01d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

components/security/authentication.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ request if you have session-based authentication, if ``always_authenticate_befor
300300
is enabled or if token is not authenticated before AccessListener is invoked.
301301
See ``security.interactive_login`` below if you need to do something when a user *actually* logs in.
302302

303+
.. deprecated:: 5.4
304+
305+
The ``always_authenticate_before_granting`` option was deprecated in
306+
Symfony 5.4 and it will be removed in Symfony 6.0.
307+
303308
When a provider attempts authentication but fails (i.e. throws an ``AuthenticationException``),
304309
a ``security.authentication.failure`` event is dispatched. You could listen on
305310
the ``security.authentication.failure`` event, for example, in order to log

reference/configuration/security.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ always_authenticate_before_granting
5858

5959
**type**: ``boolean`` **default**: ``false``
6060

61+
.. deprecated:: 5.4
62+
63+
The ``always_authenticate_before_granting`` option was deprecated in
64+
Symfony 5.4 and it will be removed in Symfony 6.0.
65+
6166
If ``true``, the user is asked to authenticate before each call to the
6267
``isGranted()`` method in services and controllers or ``is_granted()`` from
6368
templates.

0 commit comments

Comments
 (0)