From bf020aa4e66114fd46d05b27130901d6a8229321 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 4 Oct 2017 02:53:39 +0200 Subject: [PATCH] Proposed a security.yaml file for the "test" environment (#131) --- symfony/security-bundle/3.3/config/packages/security.yaml | 1 + .../security-bundle/3.3/config/packages/test/security.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 symfony/security-bundle/3.3/config/packages/test/security.yaml diff --git a/symfony/security-bundle/3.3/config/packages/security.yaml b/symfony/security-bundle/3.3/config/packages/security.yaml index eea9b2ff..13e382d3 100644 --- a/symfony/security-bundle/3.3/config/packages/security.yaml +++ b/symfony/security-bundle/3.3/config/packages/security.yaml @@ -6,6 +6,7 @@ security: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false + # if you change the name of the firewall, update it in the packages/test/security.yaml file too main: anonymous: ~ diff --git a/symfony/security-bundle/3.3/config/packages/test/security.yaml b/symfony/security-bundle/3.3/config/packages/test/security.yaml new file mode 100644 index 00000000..5fca1be9 --- /dev/null +++ b/symfony/security-bundle/3.3/config/packages/test/security.yaml @@ -0,0 +1,7 @@ +# This configuration simplifies testing URLs protected by the security mechanism +# See https://symfony.com/doc/current/cookbook/testing/http_authentication.html +security: + firewalls: + # replace 'main' by the name of your own firewall + main: + http_basic: ~