프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$flagGenerator | Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator | ||
$session | Symfony\Component\HttpFoundation\Session\SessionInterface |
메소드 | 설명 | |
---|---|---|
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator $flagGenerator ) | Construct a manager that takes care of session flags. | |
isNotAuthenticated ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean | Check if session flag is set and is not complete. | |
setBegin ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) | Set session flag to ask for two-factor authentication. | |
setComplete ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) | Set session flag completed. |
메소드 | 설명 | |
---|---|---|
getSessionFlag ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : string | Generate session token. |
public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator $flagGenerator ) | ||
$session | Symfony\Component\HttpFoundation\Session\SessionInterface | |
$flagGenerator | Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator |
protected getSessionFlag ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : string | ||
$provider | string | Two-factor provider name |
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | |
리턴 | string |
public isNotAuthenticated ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean | ||
$provider | string | |
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | |
리턴 | boolean |
public setComplete ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) | ||
$provider | string | |
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface |
protected SessionFlagGenerator,Scheb\TwoFactorBundle\Security\TwoFactor\Session $flagGenerator | ||
리턴 | Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator |