Skip to content

Commit 4d29c99

Browse files
artyuumjaviereguiluz
authored andcommitted
[Security] Added a note regarding the loginUser() method
1 parent 945bb67 commit 4d29c99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,11 @@ You can pass any
625625
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\TestBrowserToken` object and
626626
stores in the session of the test client.
627627

628+
.. note::
629+
630+
Stateless firewalls cannot use ``loginUser()`` prior to requests by design.
631+
Instead you should add the correct token (i.e. header) in each ``request()`` call.
632+
628633
Making AJAX Requests
629634
....................
630635

0 commit comments

Comments
 (0)