Skip to content

Commit 332d0ba

Browse files
committed
minor #9390 [SecurityBundle] Document switch_user.stateless firewall option (chalasr)
This PR was merged into the 3.4 branch. Discussion ---------- [SecurityBundle] Document switch_user.stateless firewall option Fixes #8447. Note for mergers: this should be removed in 4.0, the `switch_user.stateless` is set according to the firewall `stateless` option value there so it just works naturally and the config option is useless. Commits ------- 2d71493 Document switch_user.stateless firewall option
2 parents 9ffbead + 2d71493 commit 332d0ba

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)