PHP Class Symfony\Component\Security\Http\Firewall\UsernamePasswordJsonAuthenticationListener

Author: Kévin Dunglas ([email protected])
Inheritance: implements Symfony\Component\Security\Http\Firewall\ListenerInterface
显示文件 Open project: symfony/symfony 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\Security\Http\Authentication\AuthenticationSuccessHandlerInterface $successHandler, Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface $failureHandler, array $options = [], Psr\Log\LoggerInterface $logger = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null )
handle ( GetResponseEvent $event )

Private Methods

Method Description
onFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $failed )
onSuccess ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )

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\Security\Http\Authentication\AuthenticationSuccessHandlerInterface $successHandler, Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface $failureHandler, array $options = [], Psr\Log\LoggerInterface $logger = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authenticationManager Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface
$successHandler Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface
$failureHandler Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface
$options array
$logger Psr\Log\LoggerInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface

handle() public method

public handle ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent