mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
Update custom_authentication_provider.rst
Necessary to avoid : Failed to start the session because headers have already been sent
This commit is contained in:
committed by
Ryan Weaver
parent
bd63f2648a
commit
cb531fd07d
@@ -463,12 +463,14 @@ You are finished! You can now define parts of your app as under WSSE protection.
|
||||
firewalls:
|
||||
wsse_secured:
|
||||
pattern: /api/.*
|
||||
stateless: true
|
||||
wsse: true
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<config>
|
||||
<firewall name="wsse_secured" pattern="/api/.*">
|
||||
<stateless />
|
||||
<wsse />
|
||||
</firewall>
|
||||
</config>
|
||||
@@ -479,6 +481,7 @@ You are finished! You can now define parts of your app as under WSSE protection.
|
||||
'firewalls' => array(
|
||||
'wsse_secured' => array(
|
||||
'pattern' => '/api/.*',
|
||||
'stateless' => true,
|
||||
'wsse' => true,
|
||||
),
|
||||
),
|
||||
@@ -563,6 +566,7 @@ set to any desirable value per firewall.
|
||||
firewalls:
|
||||
wsse_secured:
|
||||
pattern: /api/.*
|
||||
stateless: true
|
||||
wsse: { lifetime: 30 }
|
||||
|
||||
.. code-block:: xml
|
||||
@@ -571,6 +575,7 @@ set to any desirable value per firewall.
|
||||
<firewall name="wsse_secured"
|
||||
pattern="/api/.*"
|
||||
>
|
||||
<stateless />
|
||||
<wsse lifetime="30" />
|
||||
</firewall>
|
||||
</config>
|
||||
@@ -581,6 +586,7 @@ set to any desirable value per firewall.
|
||||
'firewalls' => array(
|
||||
'wsse_secured' => array(
|
||||
'pattern' => '/api/.*',
|
||||
'stateless' => true,
|
||||
'wsse' => array(
|
||||
'lifetime' => 30,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user