summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2015-11-28 10:18:46 +0100
committerChristian Flothmann <christian.flothmann@xabbuh.de>2015-11-28 10:30:56 +0100
commitd4ae640fd34a799439436bfd5ba5bf4b2a619929 (patch)
treedab291db740725e6c97024941ae2684c0c5db6bc /Http
parent7fb58694400f63e4f01e0bb9750c04d071524619 (diff)
downloadsymfony-security-d4ae640fd34a799439436bfd5ba5bf4b2a619929.zip
symfony-security-d4ae640fd34a799439436bfd5ba5bf4b2a619929.tar.gz
symfony-security-d4ae640fd34a799439436bfd5ba5bf4b2a619929.tar.bz2
[Security] remove deprecated HTTP digest auth key
Diffstat (limited to 'Http')
-rw-r--r--Http/EntryPoint/DigestAuthenticationEntryPoint.php10
-rw-r--r--Http/Firewall/DigestAuthenticationListener.php2
2 files changed, 1 insertions, 11 deletions
diff --git a/Http/EntryPoint/DigestAuthenticationEntryPoint.php b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
index cdb98eb..9dfd592 100644
--- a/Http/EntryPoint/DigestAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
@@ -65,16 +65,6 @@ class DigestAuthenticationEntryPoint implements AuthenticationEntryPointInterfac
}
/**
- * @deprecated Since version 2.8, to be removed in 3.0. Use getSecret() instead.
- */
- public function getKey()
- {
- @trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
-
- return $this->getSecret();
- }
-
- /**
* @return string
*/
public function getSecret()
diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php
index 41e5d6d..ef723ea 100644
--- a/Http/Firewall/DigestAuthenticationListener.php
+++ b/Http/Firewall/DigestAuthenticationListener.php
@@ -78,7 +78,7 @@ class DigestAuthenticationListener implements ListenerInterface
}
try {
- $digestAuth->validateAndDecode($this->authenticationEntryPoint->getKey(), $this->authenticationEntryPoint->getRealmName());
+ $digestAuth->validateAndDecode($this->authenticationEntryPoint->getSecret(), $this->authenticationEntryPoint->getRealmName());
} catch (BadCredentialsException $e) {
$this->fail($event, $request, $e);