PHP 클래스 WellCommerce\Bundle\OAuthBundle\Security\FacebookAuthenticator

상속: extends Symfony\Component\Security\Guard\AbstractGuardAuthenticator
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ) : UsernamePasswordToken
getCredentials ( Request $request )
getProvider ( ) : League\OAuth2\Client\Provider\Facebook
getUser ( $authorizationCode, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider )
onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception ) : RedirectResponse Scheme used after authentification fails
onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : RedirectResponse Scheme used after authentification succeeds
start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null ) : RedirectResponse Starts the authentication scheme.
supportsRememberMe ( ) : boolean

보호된 메소드들

메소드 설명
autoRegisterClient ( League\OAuth2\Client\Provider\FacebookUser $facebookUser ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface Automatic register process

메소드 상세

__construct() 공개 메소드

FacebookAuthenticator constructor.
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

autoRegisterClient() 보호된 메소드

Automatic register process
protected autoRegisterClient ( League\OAuth2\Client\Provider\FacebookUser $facebookUser ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface
$facebookUser League\OAuth2\Client\Provider\FacebookUser
리턴 WellCommerce\Bundle\ClientBundle\Entity\ClientInterface

checkCredentials() 공개 메소드

public checkCredentials ( $credentials, Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

createAuthenticatedToken() 공개 메소드

public createAuthenticatedToken ( Symfony\Component\Security\Core\User\UserInterface $user, string $providerKey ) : UsernamePasswordToken
$user Symfony\Component\Security\Core\User\UserInterface
$providerKey string
리턴 Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken

getCredentials() 공개 메소드

public getCredentials ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getProvider() 공개 메소드

public getProvider ( ) : League\OAuth2\Client\Provider\Facebook
리턴 League\OAuth2\Client\Provider\Facebook

getUser() 공개 메소드

public getUser ( $authorizationCode, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider )
$userProvider Symfony\Component\Security\Core\User\UserProviderInterface

onAuthenticationFailure() 공개 메소드

Scheme used after authentification fails
public onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$exception Symfony\Component\Security\Core\Exception\AuthenticationException
리턴 Symfony\Component\HttpFoundation\RedirectResponse

onAuthenticationSuccess() 공개 메소드

Scheme used after authentification succeeds
public onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$providerKey string
리턴 Symfony\Component\HttpFoundation\RedirectResponse

start() 공개 메소드

Starts the authentication scheme.
public start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$authException Symfony\Component\Security\Core\Exception\AuthenticationException
리턴 Symfony\Component\HttpFoundation\RedirectResponse

supportsRememberMe() 공개 메소드

public supportsRememberMe ( ) : boolean
리턴 boolean

프로퍼티 상세

$appId 보호되어 있는 프로퍼티

protected string $appId
리턴 string

$appSecret 보호되어 있는 프로퍼티

protected string $appSecret
리턴 string

$clientManager 보호되어 있는 프로퍼티

protected ManagerInterface,WellCommerce\Bundle\DoctrineBundle\Manager $clientManager
리턴 WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface

$facebookProvider 보호되어 있는 프로퍼티

protected Facebook,League\OAuth2\Client\Provider $facebookProvider
리턴 League\OAuth2\Client\Provider\Facebook

$routerHelper 보호되어 있는 프로퍼티

protected RouterHelperInterface,WellCommerce\Bundle\CoreBundle\Helper\Router $routerHelper
리턴 WellCommerce\Bundle\CoreBundle\Helper\Router\RouterHelperInterface