summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander <iam.asm89@gmail.com>2012-07-15 15:37:14 +0200
committerAlexander <iam.asm89@gmail.com>2013-01-07 20:58:58 +0100
commit924552dccf20ff29dc56c203458f53e86a11734a (patch)
tree91e76bdcad489d5c4aa76ff378942f6dddca093a
parentbd5ad6126fa1f5e20150f140bb68973e0dd8eada (diff)
downloadsymfony-security-924552dccf20ff29dc56c203458f53e86a11734a.zip
symfony-security-924552dccf20ff29dc56c203458f53e86a11734a.tar.gz
symfony-security-924552dccf20ff29dc56c203458f53e86a11734a.tar.bz2
[Security] Fix InsufficientAuthenticationException constructor calls
-rw-r--r--Http/Firewall/ExceptionListener.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index f134f9c..489e4c4 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -106,7 +106,9 @@ class ExceptionListener
}
try {
- $response = $this->startAuthentication($request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception));
+ $insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
+ $insufficientAuthenticationException->setExtraInformation($token);
+ $response = $this->startAuthentication($request, $insufficientAuthenticationException);
} catch (\Exception $e) {
$event->setException($e);