프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$appId | string | ||
$appSecret | string | ||
$clientManager | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface | ||
$facebookProvider | League\OAuth2\Client\Provider\Facebook | ||
$routerHelper | WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | 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 | |
리턴 |
public getCredentials ( |
||
$request |
public getProvider ( ) : League\OAuth2\Client\Provider\Facebook | ||
리턴 | 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 | |
리턴 |
public onAuthenticationSuccess ( |
||
$request | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | |
$providerKey | string | |
리턴 |
public start ( |
||
$request | ||
$authException | Symfony\Component\Security\Core\Exception\AuthenticationException | |
리턴 |
protected ManagerInterface,WellCommerce\Bundle\DoctrineBundle\Manager $clientManager | ||
리턴 | WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface |
protected Facebook,League\OAuth2\Client\Provider $facebookProvider | ||
리턴 | League\OAuth2\Client\Provider\Facebook |