PHP 클래스 Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorProviderRegistry

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

공개 메소드들

메소드 설명
__construct ( SessionFlagManager $flagManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, string $authRequestParameter, array $providers = [] ) Initialize with an array of registered two-factor providers.
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) Iterate over two-factor providers and begin the two-factor authentication process.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Iterate over two-factor providers and ask for two-factor authentication.

메소드 상세

__construct() 공개 메소드

Initialize with an array of registered two-factor providers.
public __construct ( SessionFlagManager $flagManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, string $authRequestParameter, array $providers = [] )
$flagManager Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$authRequestParameter string
$providers array

beginAuthentication() 공개 메소드

Iterate over two-factor providers and begin the two-factor authentication process.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context )
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface

requestAuthenticationCode() 공개 메소드

Each provider can return a response. The first response will be returned.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
리턴 Symfony\Component\HttpFoundation\Response | null