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:
72
72
73
73
http://example.com/somewhere?_switch_user=thomas
74
74
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
+
75
80
To switch back to the original user, use the special ``_exit `` username:
76
81
77
82
.. code-block :: text
@@ -197,7 +202,7 @@ Limiting User Switching
197
202
198
203
If you need more control over user switching, you can use a security voter. First,
199
204
configure ``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
201
206
be called):
202
207
203
208
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments