File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ as the value to the current URL:
7272
7373 http://example.com/somewhere?_switch_user=thomas
7474
75+ .. tip ::
76+
77+ Instead of adding a ``_switch_user `` query string parameter, you can pass
78+ the username in a ``HTTP_X_SWITCH_USER `` header.
79+
7580To switch back to the original user, use the special ``_exit `` username:
7681
7782.. code-block :: text
@@ -197,7 +202,7 @@ Limiting User Switching
197202
198203If you need more control over user switching, you can use a security voter. First,
199204configure ``switch_user `` to check for some new, custom attribute. This can be
200- anything, but *cannot * start with ``ROLE_ `` (to enforce that only your voter will
205+ anything, but *cannot * start with ``ROLE_ `` (to enforce that only your voter will
201206be called):
202207
203208.. configuration-block ::
You can’t perform that action at this time.
0 commit comments