TotpProvider implements MfaProviderInterface

Read onlyYes
FinalYes

MFA provider for time-based one-time password authentication

Internal

should only be used by the TYPO3 Core

Table of Contents

Interfaces

MfaProviderInterface
To be implemented by all MFA providers.

Methods

__construct()  : mixed
activate()  : bool
Activate the provider by checking the necessary parameters, verifying the TOTP and storing the provider properties.
canProcess()  : bool
Check if a TOTP is given in the current request
deactivate()  : bool
Handle the deactivate action. For security reasons, the provider entry is completely deleted and setting up this provider again, will therefore create a brand-new entry.
handleRequest()  : ResponseInterface
Initialize view and forward to the appropriate implementation based on the view type to be returned.
isActive()  : bool
Evaluate if the provider is activated by checking the active state and the secret from the provider properties.
isLocked()  : bool
Evaluate if the provider is temporarily locked by checking the current attempts state from the provider properties.
unlock()  : bool
Handle the unlock action by resetting the attempts provider property
update()  : bool
Handle the save action by updating the provider properties
verify()  : bool
Verify the given TOTP and update the provider properties in case the TOTP is valid.

Methods

activate()

Activate the provider by checking the necessary parameters, verifying the TOTP and storing the provider properties.

public activate(ServerRequestInterface $request, MfaProviderPropertyManager $propertyManager) : bool
Parameters
$request : ServerRequestInterface
$propertyManager : MfaProviderPropertyManager
Return values
bool

TRUE in case operation was successful, FALSE otherwise

canProcess()

Check if a TOTP is given in the current request

public canProcess(ServerRequestInterface $request) : bool
Parameters
$request : ServerRequestInterface
Return values
bool

deactivate()

Handle the deactivate action. For security reasons, the provider entry is completely deleted and setting up this provider again, will therefore create a brand-new entry.

public deactivate(ServerRequestInterface $request, MfaProviderPropertyManager $propertyManager) : bool
Parameters
$request : ServerRequestInterface
$propertyManager : MfaProviderPropertyManager
Return values
bool

TRUE in case operation was successful, FALSE otherwise

unlock()

Handle the unlock action by resetting the attempts provider property

public unlock(ServerRequestInterface $request, MfaProviderPropertyManager $propertyManager) : bool
Parameters
$request : ServerRequestInterface
$propertyManager : MfaProviderPropertyManager
Return values
bool

TRUE in case operation was successful, FALSE otherwise

update()

Handle the save action by updating the provider properties

public update(ServerRequestInterface $request, MfaProviderPropertyManager $propertyManager) : bool
Parameters
$request : ServerRequestInterface
$propertyManager : MfaProviderPropertyManager
Return values
bool

TRUE in case operation was successful, FALSE otherwise

verify()

Verify the given TOTP and update the provider properties in case the TOTP is valid.

public verify(ServerRequestInterface $request, MfaProviderPropertyManager $propertyManager) : bool
Parameters
$request : ServerRequestInterface
$propertyManager : MfaProviderPropertyManager
Return values
bool

        
On this page

Search results