Property | Type | Description | |
---|---|---|---|
$appId | string | ||
$appSecret | string | ||
$clientManager | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface | ||
$facebookProvider | League\OAuth2\Client\Provider\Facebook | ||
$routerHelper | WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface |
Method | Description | |
---|---|---|
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $clientManager, WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface $routerHelper, string $appId, string $appSecret ) | FacebookAuthenticator constructor. | |
checkCredentials ( $credentials, Symfony\Component\Security\Core\User\UserInterface $user ) | ||
createAuthenticatedToken ( Symfony\Component\Security\Core\User\UserInterface $user, string $providerKey ) : |
||
getCredentials ( |
||
getProvider ( ) : League\OAuth2\Client\Provider\Facebook | ||
getUser ( $authorizationCode, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider ) | ||
onAuthenticationFailure ( |
Scheme used after authentification fails | |
onAuthenticationSuccess ( |
Scheme used after authentification succeeds | |
start ( |
Starts the authentication scheme. | |
supportsRememberMe ( ) : boolean |
Method | Description | |
---|---|---|
autoRegisterClient ( League\OAuth2\Client\Provider\FacebookUser $facebookUser ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface | Automatic register process |
public __construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $clientManager, WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface $routerHelper, string $appId, string $appSecret ) | ||
$clientManager | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface | |
$routerHelper | WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface | |
$appId | string | |
$appSecret | string |
protected autoRegisterClient ( League\OAuth2\Client\Provider\FacebookUser $facebookUser ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface | ||
$facebookUser | League\OAuth2\Client\Provider\FacebookUser | |
return | WellCommerce\Bundle\ClientBundle\Entity\ClientInterface |
public checkCredentials ( $credentials, Symfony\Component\Security\Core\User\UserInterface $user ) | ||
$user | Symfony\Component\Security\Core\User\UserInterface |
public createAuthenticatedToken ( Symfony\Component\Security\Core\User\UserInterface $user, string $providerKey ) : |
||
$user | Symfony\Component\Security\Core\User\UserInterface | |
$providerKey | string | |
return |
public getCredentials ( |
||
$request |
public getProvider ( ) : League\OAuth2\Client\Provider\Facebook | ||
return | League\OAuth2\Client\Provider\Facebook |
public getUser ( $authorizationCode, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider ) | ||
$userProvider | Symfony\Component\Security\Core\User\UserProviderInterface |
public onAuthenticationFailure ( |
||
$request | ||
$exception | Symfony\Component\Security\Core\Exception\AuthenticationException | |
return |
public onAuthenticationSuccess ( |
||
$request | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | |
$providerKey | string | |
return |
public start ( |
||
$request | ||
$authException | Symfony\Component\Security\Core\Exception\AuthenticationException | |
return |
protected ManagerInterface,WellCommerce\Bundle\DoctrineBundle\Manager $clientManager | ||
return | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface |
protected Facebook,League\OAuth2\Client\Provider $facebookProvider | ||
return | League\OAuth2\Client\Provider\Facebook |