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

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

Méthodes publiques

Méthode 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 méthode

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 méthode

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 méthode

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