PHP Class Newscoop\NewscoopBundle\Security\Http\Authentication\OAuthSuccessHandler

It sings in to the Symfony frontend firewall and also to the Zend, when signing in via OAuth firewall.
Inheritance: extends AbstractAuthenticationHandler
Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$authAdapter
$userService

Public Methods

Method Description
__construct ( HttpUtils $httpUtils, array $options, Newscoop\Services\Auth\DoctrineAuthService $authAdapter, UserService $userService ) Constructor
onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : Response This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Method Details

__construct() public method

Constructor
public __construct ( HttpUtils $httpUtils, array $options, Newscoop\Services\Auth\DoctrineAuthService $authAdapter, UserService $userService )
$httpUtils Symfony\Component\Security\Http\HttpUtils
$options array
$authAdapter Newscoop\Services\Auth\DoctrineAuthService
$userService UserService

onAuthenticationSuccess() public method

This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
public onAuthenticationSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : Response
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
return Symfony\Component\HttpFoundation\Response

Property Details

$authAdapter protected property

protected $authAdapter

$userService protected property

protected $userService