PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\EventListener\InteractiveLoginListener

Show file Open project: scheb/two-factor-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface $authenticationContextFactory, Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, array $supportedTokens, array $ipWhitelist ) Construct a listener for login events.
onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event ) Listen for successful login events.

Private Methods

Method Description
isTokenSupported ( mixed $token ) : boolean Check if the token class is supported.

Method Details

__construct() public method

Construct a listener for login events.
public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface $authenticationContextFactory, Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, array $supportedTokens, array $ipWhitelist )
$authenticationContextFactory Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface
$authHandler Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
$supportedTokens array
$ipWhitelist array

onSecurityInteractiveLogin() public method

Listen for successful login events.
public onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event )
$event Symfony\Component\Security\Http\Event\InteractiveLoginEvent