[Security] [HttpDigest] Fixes a configuration error caused by an invalid 'key' child node configuration
This commit is contained in:
parent
e4ebffb01b
commit
fc41d4f223
@ -62,7 +62,7 @@ class HttpDigestFactory implements SecurityFactoryInterface
|
||||
->children()
|
||||
->scalarNode('provider')->end()
|
||||
->scalarNode('realm')->defaultValue('Secured Area')->end()
|
||||
->scalarNode('key')->cannotBeEmpty()->end()
|
||||
->scalarNode('key')->isRequired()->cannotBeEmpty()->end()
|
||||
->end()
|
||||
;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ $container->loadFromExtension('security', array(
|
||||
'simple' => array('pattern' => '/login', 'security' => false),
|
||||
'secure' => array('stateless' => true,
|
||||
'http_basic' => true,
|
||||
'http_digest' => true,
|
||||
'http_digest' => array('key' => 'TheKey'),
|
||||
'form_login' => true,
|
||||
'anonymous' => true,
|
||||
'switch_user' => true,
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
<firewall name="secure" stateless="true">
|
||||
<http-basic />
|
||||
<http-digest />
|
||||
<http-digest key="TheKey" />
|
||||
<form-login />
|
||||
<anonymous />
|
||||
<switch-user />
|
||||
|
@ -35,7 +35,8 @@ security:
|
||||
secure:
|
||||
stateless: true
|
||||
http_basic: true
|
||||
http_digest: true
|
||||
http_digest:
|
||||
key: TheKey
|
||||
form_login: true
|
||||
anonymous: true
|
||||
switch_user: true
|
||||
|
Reference in New Issue
Block a user