‪TYPO3CMS  11.5
TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry Class Reference

Public Member Functions

 registerProvider (MfaProviderManifestInterface $provider)
 
 hasProvider (string $identifer)
 
 hasProviders ()
 
 getProvider (string $identifier)
 
 getProviders ()
 
bool hasActiveProviders (AbstractUserAuthentication $user)
 
MfaProviderManifestInterface[] getActiveProviders (AbstractUserAuthentication $user)
 
MfaProviderManifestInterface getFirstAuthenticationAwareProvider (AbstractUserAuthentication $user)
 
bool hasLockedProviders (AbstractUserAuthentication $user)
 
MfaProviderManifestInterface[] getLockedProviders (AbstractUserAuthentication $user)
 
 allowedProvidersItemsProcFunc (array &$parameters)
 

Protected Attributes

array $providers = []
 

Detailed Description

Registry for configuration providers which is called by the ConfigurationProviderPass

should only be used by the TYPO3 Core

Definition at line 27 of file MfaProviderRegistry.php.

Member Function Documentation

◆ allowedProvidersItemsProcFunc()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::allowedProvidersItemsProcFunc ( array &  $parameters)

Definition at line 139 of file MfaProviderRegistry.php.

◆ getActiveProviders()

◆ getFirstAuthenticationAwareProvider()

MfaProviderManifestInterface TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::getFirstAuthenticationAwareProvider ( AbstractUserAuthentication  $user)

Get the first provider for the user which can be used for authentication. This is either the user specified default provider, or the first active provider based on the providers configured ordering.

Parameters
AbstractUserAuthentication$user
Returns
MfaProviderManifestInterface

Definition at line 95 of file MfaProviderRegistry.php.

References TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry\getActiveProviders(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\unpack_uc().

◆ getLockedProviders()

MfaProviderManifestInterface [] TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::getLockedProviders ( AbstractUserAuthentication  $user)

◆ getProvider()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::getProvider ( string  $identifier)

◆ getProviders()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::getProviders ( )

◆ hasActiveProviders()

bool TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::hasActiveProviders ( AbstractUserAuthentication  $user)

Whether the given user has active providers

Parameters
AbstractUserAuthentication$user
Returns
‪bool

Definition at line 69 of file MfaProviderRegistry.php.

References TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry\getActiveProviders().

◆ hasLockedProviders()

bool TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::hasLockedProviders ( AbstractUserAuthentication  $user)

Whether the given user has locked providers

Parameters
AbstractUserAuthentication$user
Returns
‪bool

Definition at line 121 of file MfaProviderRegistry.php.

References TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry\getLockedProviders().

◆ hasProvider()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::hasProvider ( string  $identifer)

◆ hasProviders()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::hasProviders ( )

Definition at line 44 of file MfaProviderRegistry.php.

◆ registerProvider()

TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::registerProvider ( MfaProviderManifestInterface  $provider)

Member Data Documentation

◆ $providers

array TYPO3\CMS\Core\Authentication\Mfa\MfaProviderRegistry::$providers = []
protected