Skip to content

Commit 2d71493

Browse files
committed
Document switch_user.stateless firewall option
1 parent 276b0e3 commit 2d71493

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

reference/configuration/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ Each part will be explained in the next section.
302302
provider: ~
303303
parameter: _switch_user
304304
role: ROLE_ALLOWED_TO_SWITCH
305+
stateless: false
305306
306307
access_control:
307308
requires_channel: ~

security/impersonating_user.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ firewall listener:
6666
),
6767
));
6868
69+
.. tip::
70+
71+
For using the ``switch_user`` listener in a ``stateless`` firewall, set the
72+
``switch_user.stateless`` option to ``true``.
73+
6974
To switch to another user, just add a query string with the ``_switch_user``
7075
parameter and the username as the value to the current URL:
7176

0 commit comments

Comments
 (0)