Skip to content

Commit 56488ed

Browse files
committed
Clearify setup of basic auth for test environment
1 parent f5fb157 commit 56488ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/http_authentication.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ firewall, but only in the configuration file used by tests:
5353
),
5454
));
5555
56+
.. caution::
57+
58+
It's crucial to use the same firewall name which is used in ``security.yml`` (e.g. ``main``
59+
instead of ``your_firewall_name``). So you won't define a *new* element (a new firewall)
60+
under ``security.firewalls``, but alter the original firewall configuration.
61+
5662
Tests can now authenticate via HTTP passing the username and password as server
5763
variables using the second argument of ``createClient()``::
5864

0 commit comments

Comments
 (0)