PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedFilter

Inheritance: implements Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
Show file Open project: scheb/two-factor-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, TrustedCookieManager $cookieManager, boolean $useTrustedOption, string $trustedName ) Construct the trusted computer layer.
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) Check if user is on a trusted computer, otherwise call TwoFactorProviderRegistry.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Call TwoFactorProviderRegistry, set trusted computer cookie if requested.

Method Details

__construct() public method

Construct the trusted computer layer.
public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, TrustedCookieManager $cookieManager, boolean $useTrustedOption, string $trustedName )
$authHandler Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
$cookieManager TrustedCookieManager
$useTrustedOption boolean
$trustedName string

beginAuthentication() public method

Check if user is on a trusted computer, otherwise call TwoFactorProviderRegistry.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context )
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface

requestAuthenticationCode() public method

Call TwoFactorProviderRegistry, set trusted computer cookie if requested.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
return Symfony\Component\HttpFoundation\Response | null