Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Security] [HttpDigest] Fixes a configuration error caused by an inva…
…lid 'key' child node configuration
  • Loading branch information
Rui Marinho committed Apr 4, 2012
1 parent e4ebffb commit fc41d4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Expand Up @@ -62,7 +62,7 @@ public function addConfiguration(NodeDefinition $node)
->children()
->scalarNode('provider')->end()
->scalarNode('realm')->defaultValue('Secured Area')->end()
->scalarNode('key')->cannotBeEmpty()->end()
->scalarNode('key')->isRequired()->cannotBeEmpty()->end()
->end()
;
}
Expand Down
Expand Up @@ -48,7 +48,7 @@
'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,
Expand Down
Expand Up @@ -41,7 +41,7 @@

<firewall name="secure" stateless="true">
<http-basic />
<http-digest />
<http-digest key="TheKey" />
<form-login />
<anonymous />
<switch-user />
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit fc41d4f

Please sign in to comment.