Skip to content

Commit

Permalink
Document switch_user.stateless firewall option
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Mar 4, 2018
1 parent 276b0e3 commit 2d71493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ Each part will be explained in the next section.
provider: ~
parameter: _switch_user
role: ROLE_ALLOWED_TO_SWITCH
stateless: false
access_control:
requires_channel: ~
Expand Down
5 changes: 5 additions & 0 deletions security/impersonating_user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ firewall listener:
),
));
.. tip::

For using the ``switch_user`` listener in a ``stateless`` firewall, set the
``switch_user.stateless`` option to ``true``.

To switch to another user, just add a query string with the ``_switch_user``
parameter and the username as the value to the current URL:

Expand Down

0 comments on commit 2d71493

Please sign in to comment.