PHP 클래스 Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedFilter

상속: implements Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
파일 보기 프로젝트 열기: scheb/two-factor-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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