summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Provider/SimpleAuthenticationProvider.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/Provider/SimpleAuthenticationProvider.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/Provider/SimpleAuthenticationProvider.php')
-rw-r--r--Core/Authentication/Provider/SimpleAuthenticationProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Authentication/Provider/SimpleAuthenticationProvider.php b/Core/Authentication/Provider/SimpleAuthenticationProvider.php
index 72b82cb..8f8cceb 100644
--- a/Core/Authentication/Provider/SimpleAuthenticationProvider.php
+++ b/Core/Authentication/Provider/SimpleAuthenticationProvider.php
@@ -40,7 +40,7 @@ class SimpleAuthenticationProvider implements AuthenticationProviderInterface
public function authenticate(TokenInterface $token)
{
- $authToken = $this->simpleAuthenticator->authenticate($token, $this->userProvider, $this->providerKey);
+ $authToken = $this->simpleAuthenticator->authenticateToken($token, $this->userProvider, $this->providerKey);
if ($authToken instanceof TokenInterface) {
return $authToken;
@@ -51,6 +51,6 @@ class SimpleAuthenticationProvider implements AuthenticationProviderInterface
public function supports(TokenInterface $token)
{
- return $this->simpleAuthenticator->supports($token, $this->providerKey);
+ return $this->simpleAuthenticator->supportsToken($token, $this->providerKey);
}
}