summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/SimpleAuthenticatorInterface.php
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2013-04-12 13:49:16 +0200
committerJordi Boggiano <j.boggiano@seld.be>2013-05-08 15:02:39 +0200
commit3804723c24767f5122a5446cab74db241a7e66bf (patch)
tree5ef264737aadde056a44a16c97e0df02deef4661 /Core/Authentication/SimpleAuthenticatorInterface.php
parentd202ab7471546fe14449117b6c568e286a21ef91 (diff)
downloadsymfony-security-3804723c24767f5122a5446cab74db241a7e66bf.zip
symfony-security-3804723c24767f5122a5446cab74db241a7e66bf.tar.gz
symfony-security-3804723c24767f5122a5446cab74db241a7e66bf.tar.bz2
[Security] Add simple_token auth method
Diffstat (limited to 'Core/Authentication/SimpleAuthenticatorInterface.php')
-rw-r--r--Core/Authentication/SimpleAuthenticatorInterface.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/Core/Authentication/SimpleAuthenticatorInterface.php b/Core/Authentication/SimpleAuthenticatorInterface.php
index 81f761f..fbbaa37 100644
--- a/Core/Authentication/SimpleAuthenticatorInterface.php
+++ b/Core/Authentication/SimpleAuthenticatorInterface.php
@@ -13,18 +13,19 @@ namespace Symfony\Component\Security\Core\Authentication;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
-use Symfony\Component\HttpKernel\Event\GetResponseEvent;
-use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\User\UserProviderInterface;
+use Symfony\Component\HttpFoundation\Request;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
interface SimpleAuthenticatorInterface
{
- public function authenticate(TokenInterface $token, UserProviderInterface $userProvider, $providerKey);
+ public function authenticateToken(TokenInterface $token, UserProviderInterface $userProvider, $providerKey);
+
+ public function supportsToken(TokenInterface $token, $providerKey);
- public function supports(TokenInterface $token, $providerKey);
+ public function onAuthenticationFailure(Request $request, AuthenticationException $exception);
- public function handleAuthenticationFailure(GetResponseEvent $event, AuthenticationException $exception);
+ public function onAuthenticationSuccess(Request $request, TokenInterface $token);
}