diff options
author | Johannes M. Schmitt <schmittjoh@gmail.com> | 2011-02-01 21:59:24 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-02-02 11:31:28 +0100 |
commit | 8ae19be583eac472874c0760e075fe6e7db19359 (patch) | |
tree | 1e1820a6b1800e79e5bc8e513df33066a2278ee4 /Http/EntryPoint/DigestAuthenticationEntryPoint.php | |
parent | a204c9269152bf429c366eb238d9a95ea2e8bf9b (diff) | |
download | symfony-security-8ae19be583eac472874c0760e075fe6e7db19359.zip symfony-security-8ae19be583eac472874c0760e075fe6e7db19359.tar.gz symfony-security-8ae19be583eac472874c0760e075fe6e7db19359.tar.bz2 |
[Security] bug fix in FormAuthenticationEntryPoint
Diffstat (limited to 'Http/EntryPoint/DigestAuthenticationEntryPoint.php')
-rw-r--r-- | Http/EntryPoint/DigestAuthenticationEntryPoint.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Http/EntryPoint/DigestAuthenticationEntryPoint.php b/Http/EntryPoint/DigestAuthenticationEntryPoint.php index 89ba465..ecc6178 100644 --- a/Http/EntryPoint/DigestAuthenticationEntryPoint.php +++ b/Http/EntryPoint/DigestAuthenticationEntryPoint.php @@ -11,8 +11,9 @@ namespace Symfony\Component\Security\Http\EntryPoint; +use Symfony\Component\EventDispatcher\EventInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\Security\Core\Authentication\EntryPoint\AuthenticationEntryPointInterface; +use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface; use Symfony\Component\Security\Core\Exception\NonceExpiredException; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; @@ -38,7 +39,7 @@ class DigestAuthenticationEntryPoint implements AuthenticationEntryPointInterfac $this->logger = $logger; } - public function start(Request $request, AuthenticationException $authException = null) + public function start(EventInterface $event, Request $request, AuthenticationException $authException = null) { $expiryTime = microtime(true) + $this->nonceValiditySeconds * 1000; $signatureValue = md5($expiryTime.':'.$this->key); |