PHP Class eZ\Publish\Core\REST\Server\Security\RestAuthenticator

Implements \Symfony\Component\Security\Http\Firewall\ListenerInterface to be able to receive the provider key (firewall identifier from configuration).
Inheritance: implements Symfony\Component\Security\Http\Firewall\ListenerInterface, implements eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $authenticationManager, $providerKey, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface $sessionStorage, Psr\Log\LoggerInterface $logger = null )
addLogoutHandler ( Symfony\Component\Security\Http\Logout\LogoutHandlerInterface $handler )
authenticate ( Request $request )
handle ( GetResponseEvent $event ) Doesn't do anything as we don't use this service with main Firewall listener.
logout ( Request $request )

Private Methods

Method Description
attemptAuthentication ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
isUserConflict ( eZ\Publish\Core\MVC\Symfony\Security\UserInterface $user, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $previousToken = null ) : boolean Checks if newly matched user is conflicting with previously non-anonymous logged in user, if any.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $authenticationManager, $providerKey, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface $sessionStorage, Psr\Log\LoggerInterface $logger = null )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authenticationManager Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$sessionStorage Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface
$logger Psr\Log\LoggerInterface

addLogoutHandler() public method

public addLogoutHandler ( Symfony\Component\Security\Http\Logout\LogoutHandlerInterface $handler )
$handler Symfony\Component\Security\Http\Logout\LogoutHandlerInterface

authenticate() public method

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

handle() public method

Doesn't do anything as we don't use this service with main Firewall listener.
public handle ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

logout() public method

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