summaryrefslogtreecommitdiffstats
path: root/Http/Authentication/AuthenticationFailureHandlerInterface.php
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-02-14 18:06:20 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-02-14 20:55:06 +0100
commitd3fb2712958c7221ffcc237cf820aa7a3184dd0c (patch)
tree0b3723a87a0b298adbc9cc2a803d06212885e79e /Http/Authentication/AuthenticationFailureHandlerInterface.php
parent1accc593337aeaf814c203165e5b50521a9a3d22 (diff)
downloadsymfony-security-d3fb2712958c7221ffcc237cf820aa7a3184dd0c.zip
symfony-security-d3fb2712958c7221ffcc237cf820aa7a3184dd0c.tar.gz
symfony-security-d3fb2712958c7221ffcc237cf820aa7a3184dd0c.tar.bz2
[Security] fixes a bug where authentication errors might have leaked confidential information
Diffstat (limited to 'Http/Authentication/AuthenticationFailureHandlerInterface.php')
-rw-r--r--Http/Authentication/AuthenticationFailureHandlerInterface.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/Http/Authentication/AuthenticationFailureHandlerInterface.php b/Http/Authentication/AuthenticationFailureHandlerInterface.php
index 5eeefa1..8defef6 100644
--- a/Http/Authentication/AuthenticationFailureHandlerInterface.php
+++ b/Http/Authentication/AuthenticationFailureHandlerInterface.php
@@ -2,6 +2,7 @@
namespace Symfony\Component\Security\Http\Authentication;
+use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\EventDispatcher\EventInterface;
use Symfony\Component\HttpFoundation\Request;
@@ -21,12 +22,12 @@ interface AuthenticationFailureHandlerInterface
* called by authentication listeners inheriting from
* AbstractAuthenticationListener.
*
- * @param EventInterface $event the "core.security" event, this event always
- * has the kernel as target
- * @param Request $request
- * @param \Exception $exception
+ * @param EventInterface $event the "core.security" event, this event always
+ * has the kernel as target
+ * @param Request $request
+ * @param AuthenticationException $exception
*
* @return Response the response to return
*/
- function onAuthenticationFailure(EventInterface $event, Request $request, \Exception $exception);
+ function onAuthenticationFailure(EventInterface $event, Request $request, AuthenticationException $exception);
} \ No newline at end of file