Skip to content

Commit 1491eb8

Browse files
committed
Add documentation about impersonating users with an HTTP Header
1 parent 6f27e88 commit 1491eb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

security/impersonating_user.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ To switch back to the original user, use the special ``_exit`` username:
8484
8585
http://example.com/somewhere?_switch_user=_exit
8686
87+
You can also send the ``_switch_user`` parameter as an HTTP header in your request.
88+
8789
During impersonation, the user is provided with a special role called
8890
``ROLE_PREVIOUS_ADMIN``. In a template, for instance, this role can be used
8991
to show a link to exit impersonation:

0 commit comments

Comments
 (0)