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

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

Méthodes publiques

Méthode 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 méthode

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

getCredentials() public méthode

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

getUser() public méthode

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

onAuthenticationFailure() public méthode

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 méthode

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 méthode

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