Skip to content

Commit 618a34e

Browse files
committed
Adding note to authentication description
Added explicit note to tell users to enable http_basic before attempting to use authentication as described in the current documentation.
1 parent 94c02a5 commit 618a34e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,18 @@ protected static function getServerParameters()
344344
}
345345
```
346346

347+
Note: this assumes you have enabled `http_basic` in your security configuration using this setting in the `config_test.yml` file:
348+
349+
```yaml
350+
# app/config/config_test.yml
351+
security:
352+
firewalls:
353+
your_firewall_name:
354+
http_basic:
355+
```
356+
357+
See [How to simulate HTTP Authentication in a Functional Test](http://symfony.com/doc/current/cookbook/testing/http_authentication.html) for details
358+
347359
### Changing Client initialization
348360
349361
Oftentimes, overriding `createClient` is enough. Whenever you need more

0 commit comments

Comments
 (0)