PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\TwoFactorProvider

Inheritance: implements Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorProviderInterface
Show file Open project: scheb/two-factor-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\Validation\CodeValidatorInterface $authenticator, Renderer $renderer, $authCodeParameter )
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean Begin Google authentication process.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Ask for Google authentication code.

Method Details

__construct() public method

public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\Validation\CodeValidatorInterface $authenticator, Renderer $renderer, $authCodeParameter )
$authenticator Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\Validation\CodeValidatorInterface
$renderer Scheb\TwoFactorBundle\Security\TwoFactor\Renderer

beginAuthentication() public method

Begin Google authentication process.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
return boolean

requestAuthenticationCode() public method

Ask for Google authentication code.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
return Symfony\Component\HttpFoundation\Response | null