Skip to content

Commit 812396d

Browse files
committed
[Security] remove deprecated HTTP digest auth key
1 parent 743e670 commit 812396d

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpDigestFactory.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,6 @@ public function getKey()
5858
public function addConfiguration(NodeDefinition $node)
5959
{
6060
$node
61-
->beforeNormalization()
62-
->ifTrue(function ($v) { return isset($v['key']); })
63-
->then(function ($v) {
64-
if (isset($v['secret'])) {
65-
throw new \LogicException('Cannot set both key and secret options for http_digest, use only secret instead.');
66-
}
67-
68-
@trigger_error('http_digest.key is deprecated since version 2.8 and will be removed in 3.0. Use http_digest.secret instead.', E_USER_DEPRECATED);
69-
70-
$v['secret'] = $v['key'];
71-
72-
unset($v['key']);
73-
74-
return $v;
75-
})
76-
->end()
7761
->children()
7862
->scalarNode('provider')->end()
7963
->scalarNode('realm')->defaultValue('Secured Area')->end()

src/Symfony/Component/Security/Http/EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ public function start(Request $request, AuthenticationException $authException =
6464
return $response;
6565
}
6666

67-
/**
68-
* @deprecated Since version 2.8, to be removed in 3.0. Use getSecret() instead.
69-
*/
70-
public function getKey()
71-
{
72-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
73-
74-
return $this->getSecret();
75-
}
76-
7767
/**
7868
* @return string
7969
*/

src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handle(GetResponseEvent $event)
7878
}
7979

8080
try {
81-
$digestAuth->validateAndDecode($this->authenticationEntryPoint->getKey(), $this->authenticationEntryPoint->getRealmName());
81+
$digestAuth->validateAndDecode($this->authenticationEntryPoint->getSecret(), $this->authenticationEntryPoint->getRealmName());
8282
} catch (BadCredentialsException $e) {
8383
$this->fail($event, $request, $e);
8484

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy