diff --git a/security.rst b/security.rst index 992d1b70c85..de7405beee1 100644 --- a/security.rst +++ b/security.rst @@ -48,7 +48,7 @@ configuration looks like this: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false - default: + main: anonymous: ~ .. code-block:: xml @@ -70,7 +70,7 @@ configuration looks like this: pattern="^/(_(profiler|wdt)|css|images|js)/" security="false" /> - + @@ -90,7 +90,7 @@ configuration looks like this: 'pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false, ), - 'default' => array( + 'main' => array( 'anonymous' => null, ), ), @@ -106,7 +106,7 @@ by your security. You can also match a request against other details of the request (e.g. host). For more information and examples read :doc:`/security/firewall_restriction`. -All other URLs will be handled by the ``default`` firewall (no ``pattern`` +All other URLs will be handled by the ``main`` firewall (no ``pattern`` key means it matches *all* URLs). You can think of the firewall like your security system, and so it usually makes sense to have just one main firewall. But this does *not* mean that every URL requires authentication - the ``anonymous`` @@ -144,7 +144,7 @@ To activate this, add the ``http_basic`` key under your firewall: firewalls: # ... - default: + main: anonymous: ~ http_basic: ~ @@ -161,7 +161,7 @@ To activate this, add the ``http_basic`` key under your firewall: - + @@ -175,7 +175,7 @@ To activate this, add the ``http_basic`` key under your firewall: // ... 'firewalls' => array( // ... - 'default' => array( + 'main' => array( 'anonymous' => null, 'http_basic' => null, ), @@ -216,7 +216,7 @@ user to be logged in to access this URL: # ... firewalls: # ... - default: + main: # ... access_control: @@ -236,7 +236,7 @@ user to be logged in to access this URL: - + @@ -252,7 +252,7 @@ user to be logged in to access this URL: // ... 'firewalls' => array( // ... - 'default' => array( + 'main' => array( // ... ), ), @@ -707,7 +707,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio firewalls: # ... - default: + main: # ... access_control: @@ -727,7 +727,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio - + @@ -744,7 +744,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio 'firewalls' => array( // ... - 'default' => array( + 'main' => array( // ... ), ),