PHP Class KnpU\OAuth2ClientBundle\Tests\Security\Authenticator\StubSocialAuthenticator

Inheritance: extends KnpU\OAuth2ClientBundle\Security\Authenticator\SocialAuthenticator
Show file Open project: knpuniversity/oauth2-client-bundle Class Usage Examples

Public Methods

Method Description
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 )

Method Details

doFetchAccessToken() public method

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

getCredentials() public method

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

getUser() public method

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

onAuthenticationFailure() public method

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 method

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 method

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