‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Controller\MfaConfigurationController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\MfaConfigurationController:
TYPO3\CMS\Backend\Controller\AbstractMfaController

Public Member Functions

 __construct (IconFactory $iconFactory, UriBuilder $uriBuilder, MfaProviderRegistry $mfaProviderRegistry, ModuleTemplateFactory $moduleTemplateFactory)
 
 handleRequest (ServerRequestInterface $request)
 
 overviewAction (ServerRequestInterface $request, StandaloneView $view)
 
 setupAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider, StandaloneView $view)
 
 activateAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider)
 
 deactivateAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider)
 
 unlockAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider)
 
 editAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider, StandaloneView $view)
 
 saveAction (ServerRequestInterface $request, MfaProviderManifestInterface $mfaProvider)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\AbstractMfaController
 __construct (UriBuilder $uriBuilder, MfaProviderRegistry $mfaProviderRegistry, ModuleTemplateFactory $moduleTemplateFactory)
 

Protected Member Functions

 initializeView (string $templateName)
 
 getActionUri (string $action, array $additionalParameters=[])
 
 hasSuitableDefaultProviders (array $excludedProviders=[])
 
 getDefaultProviderIdentifier ()
 
 getRecommendedProviderIdentifier ()
 
 isDefaultProvider (MfaProviderManifestInterface $mfaProvider)
 
 setDefaultProvider (MfaProviderManifestInterface $mfaProvider)
 
 removeDefaultProvider ()
 
 addFlashMessage (string $message, string $title='', int $severity=FlashMessage::INFO)
 
 addOverviewButtons (ServerRequestInterface $request)
 
 addFormButtons ()
 
 getReturnUrl (ServerRequestInterface $request)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\AbstractMfaController
 isActionAllowed (string $action)
 
 isProviderAllowed (string $identifier)
 
 isValidIdentifier (string $identifier)
 
 initializeMfaConfiguration ()
 
 getRecommendedProvider ()
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

array $allowedActions = ['overview', 'setup', 'activate', 'deactivate', 'unlock', 'edit', 'save']
 
IconFactory $iconFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Controller\AbstractMfaController
UriBuilder $uriBuilder
 
MfaProviderRegistry $mfaProviderRegistry
 
ModuleTemplateFactory $moduleTemplateFactory
 
ModuleTemplate $moduleTemplate
 
array $mfaTsConfig
 
bool $mfaRequired
 
array $allowedProviders
 
array $allowedActions = []
 

Private Attributes

array $providerActionsWhenInactive = ['setup', 'activate']
 
array $providerActionsWhenActive = ['deactivate', 'unlock', 'edit', 'save']
 

Detailed Description

Controller to configure MFA providers in the backend

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 45 of file MfaConfigurationController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ activateAction()

TYPO3\CMS\Backend\Controller\MfaConfigurationController::activateAction ( ServerRequestInterface  $request,
MfaProviderManifestInterface  $mfaProvider 
)

Handle activate request, receiving from the setup view by forwarding the request to the appropriate provider. Furthermore, add the provider as default provider in case it is the recommended provider for this user, or no default provider is yet defined the newly activated provider is allowed to be a default provider and there are no other providers which would suite as default provider.

Definition at line 162 of file MfaConfigurationController.php.

References TYPO3\CMS\Core\Authentication\Mfa\MfaProviderInterface\activate(), TYPO3\CMS\Backend\Controller\MfaConfigurationController\addFlashMessage(), TYPO3\CMS\Core\Authentication\Mfa\MfaProviderPropertyManager\create(), TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Backend\Controller\MfaConfigurationController\getActionUri(), TYPO3\CMS\Backend\Controller\AbstractMfaController\getBackendUser(), TYPO3\CMS\Backend\Controller\MfaConfigurationController\getDefaultProviderIdentifier(), TYPO3\CMS\Core\Authentication\Mfa\MfaProviderManifestInterface\getIdentifier(), TYPO3\CMS\Backend\Controller\AbstractMfaController\getLanguageService(), TYPO3\CMS\Backend\Controller\MfaConfigurationController\getRecommendedProviderIdentifier(), TYPO3\CMS\Core\Authentication\Mfa\MfaProviderManifestInterface\getTitle(), TYPO3\CMS\Core\Authentication\Mfa\MfaProviderInterface\isActive(), TYPO3\CMS\Core\Authentication\Mfa\MfaProviderManifestInterface\isDefaultProviderAllowed(), TYPO3\CMS\Core\Messaging\AbstractMessage\OK, and TYPO3\CMS\Backend\Controller\MfaConfigurationController\setDefaultProvider().

◆ addFlashMessage()

◆ addFormButtons()

◆ addOverviewButtons()

◆ deactivateAction()

◆ editAction()

◆ getActionUri()

◆ getDefaultProviderIdentifier()

◆ getRecommendedProviderIdentifier()

◆ getReturnUrl()

TYPO3\CMS\Backend\Controller\MfaConfigurationController::getReturnUrl ( ServerRequestInterface  $request)
protected

◆ handleRequest()

◆ hasSuitableDefaultProviders()

TYPO3\CMS\Backend\Controller\MfaConfigurationController::hasSuitableDefaultProviders ( array  $excludedProviders = [])
protected

Check if there are more suitable default providers for the current user

Definition at line 301 of file MfaConfigurationController.php.

References TYPO3\CMS\Core\Authentication\Mfa\MfaProviderPropertyManager\create().

◆ initializeView()

TYPO3\CMS\Backend\Controller\MfaConfigurationController::initializeView ( string  $templateName)
protected

Initialize the standalone view and set the template name

Definition at line 276 of file MfaConfigurationController.php.

Referenced by TYPO3\CMS\Backend\Controller\MfaConfigurationController\handleRequest().

◆ isDefaultProvider()

◆ overviewAction()

◆ removeDefaultProvider()

◆ saveAction()

◆ setDefaultProvider()

◆ setupAction()

◆ unlockAction()

Member Data Documentation

◆ $allowedActions

array TYPO3\CMS\Backend\Controller\MfaConfigurationController::$allowedActions = ['overview', 'setup', 'activate', 'deactivate', 'unlock', 'edit', 'save']
protected

Definition at line 47 of file MfaConfigurationController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Controller\MfaConfigurationController::$iconFactory
protected

◆ $providerActionsWhenActive

array TYPO3\CMS\Backend\Controller\MfaConfigurationController::$providerActionsWhenActive = ['deactivate', 'unlock', 'edit', 'save']
private

Definition at line 49 of file MfaConfigurationController.php.

◆ $providerActionsWhenInactive

array TYPO3\CMS\Backend\Controller\MfaConfigurationController::$providerActionsWhenInactive = ['setup', 'activate']
private

Definition at line 48 of file MfaConfigurationController.php.