PHP Класс Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorProviderRegistry

Наследование: implements Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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