Skip to content

Commit a643897

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Improve security logout options
2 parents 6a3851a + 9720793 commit a643897

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

reference/configuration/security.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,13 @@ redirected to the ``default_target_path`` to avoid a redirection loop.
348348
For historical reasons, and to match the misspelling of the HTTP standard,
349349
the option is called ``use_referer`` instead of ``use_referrer``.
350350

351-
**Options Related to Logout Configuration**
351+
logout
352+
~~~~~~
353+
354+
You can configure logout options.
352355

353356
delete_cookies
354-
~~~~~~~~~~~~~~
357+
..............
355358

356359
**type**: ``array`` **default**: ``[]``
357360

@@ -498,7 +501,7 @@ It's also possible to use ``*`` as a wildcard for all directives:
498501
The ``clear_site_data`` option was introduced in Symfony 6.3.
499502

500503
invalidate_session
501-
~~~~~~~~~~~~~~~~~~
504+
..................
502505

503506
**type**: ``boolean`` **default**: ``true``
504507

@@ -511,14 +514,14 @@ option to ``false`` in every firewall and the user will only be logged out from
511514
the current firewall and not the other ones.
512515

513516
``path``
514-
~~~~~~~~
517+
........
515518

516519
**type**: ``string`` **default**: ``/logout``
517520

518521
The path which triggers logout. You need to set up a route with a matching path.
519522

520523
target
521-
~~~~~~
524+
......
522525

523526
**type**: ``string`` **default**: ``/``
524527

@@ -529,7 +532,7 @@ redirect after logout.
529532
.. _reference-security-logout-csrf:
530533

531534
enable_csrf
532-
~~~~~~~~~~~
535+
...........
533536

534537
**type**: ``boolean`` **default**: ``null``
535538

@@ -542,22 +545,22 @@ option if you need to use a custom CSRF token manager.
542545
The ``enable_csrf`` option was introduced in Symfony 6.2.
543546

544547
csrf_parameter
545-
~~~~~~~~~~~~~~
548+
..............
546549

547550
**type**: ``string`` **default**: ``'_csrf_token'``
548551

549552
The name of the parameter that stores the CSRF token value.
550553

551554
csrf_token_manager
552-
~~~~~~~~~~~~~~~~~~
555+
..................
553556

554557
**type**: ``string`` **default**: ``null``
555558

556559
The ``id`` of the service used to generate the CSRF tokens. Symfony provides a
557560
default service whose ID is ``security.csrf.token_manager``.
558561

559562
csrf_token_id
560-
~~~~~~~~~~~~~
563+
.............
561564

562565
**type**: ``string`` **default**: ``'logout'``
563566

0 commit comments

Comments
 (0)