Свойство | 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 |
Méthode | 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 |
Méthode | 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 | |
Résultat | 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 | |
Résultat |
public getCredentials ( |
||
$request |
public getProvider ( ) : League\OAuth2\Client\Provider\Facebook | ||
Résultat | 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 | |
Résultat |
public onAuthenticationSuccess ( |
||
$request | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | |
$providerKey | string | |
Résultat |
public start ( |
||
$request | ||
$authException | Symfony\Component\Security\Core\Exception\AuthenticationException | |
Résultat |
protected ManagerInterface,WellCommerce\Bundle\DoctrineBundle\Manager $clientManager | ||
Résultat | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface |
protected Facebook,League\OAuth2\Client\Provider $facebookProvider | ||
Résultat | League\OAuth2\Client\Provider\Facebook |