PHP Класс KnpU\OAuth2ClientBundle\Tests\Security\Authenticator\StubSocialAuthenticator

Наследование: extends KnpU\OAuth2ClientBundle\Security\Authenticator\SocialAuthenticator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
doFetchAccessToken ( OAuth2Client $client )
getCredentials ( Request $request )
getUser ( $credentials, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider )
onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception )
onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $providerKey )
start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null )

Описание методов

doFetchAccessToken() публичный Метод

public doFetchAccessToken ( OAuth2Client $client )
$client KnpU\OAuth2ClientBundle\Client\OAuth2Client

getCredentials() публичный Метод

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

getUser() публичный Метод

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

onAuthenticationFailure() публичный Метод

public onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception )
$request Symfony\Component\HttpFoundation\Request
$exception Symfony\Component\Security\Core\Exception\AuthenticationException

onAuthenticationSuccess() публичный Метод

public onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $providerKey )
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

start() публичный Метод

public start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null )
$request Symfony\Component\HttpFoundation\Request
$authException Symfony\Component\Security\Core\Exception\AuthenticationException