‪TYPO3CMS  ‪main
MfaVerificationFailedEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\Http\Message\ServerRequestInterface;
24 
29 {
30  public function ‪__construct(
31  private readonly ServerRequestInterface $request,
32  private readonly ‪MfaProviderPropertyManager $propertyManager,
33  private readonly ‪MfaProviderManifestInterface $mfaProvider,
34  ) {
35  parent::__construct($this->request);
36  }
37 
39  {
40  return $this->propertyManager->getUser();
41  }
42 
43  public function ‪getProviderIdentifier(): string
44  {
45  return $this->mfaProvider->getIdentifier();
46  }
47 
48  public function ‪getProviderProperties(): array
49  {
50  return $this->propertyManager->getProperties();
51  }
52 
53  public function ‪isProviderLocked(): bool
54  {
55  return $this->mfaProvider->isLocked($this->propertyManager);
56  }
57 }
‪TYPO3\CMS\Core\Authentication\Event\AbstractAuthenticationFailedEvent
Definition: AbstractAuthenticationFailedEvent.php:28
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent\getProviderProperties
‪getProviderProperties()
Definition: MfaVerificationFailedEvent.php:48
‪TYPO3\CMS\Core\Authentication\Mfa\MfaProviderManifestInterface
Definition: MfaProviderManifestInterface.php:26
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent
Definition: MfaVerificationFailedEvent.php:29
‪TYPO3\CMS\Core\Authentication\Event
Definition: AbstractAuthenticationFailedEvent.php:18
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent\isProviderLocked
‪isProviderLocked()
Definition: MfaVerificationFailedEvent.php:53
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private readonly MfaProviderPropertyManager $propertyManager, private readonly MfaProviderManifestInterface $mfaProvider,)
Definition: MfaVerificationFailedEvent.php:30
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent\getProviderIdentifier
‪getProviderIdentifier()
Definition: MfaVerificationFailedEvent.php:43
‪TYPO3\CMS\Core\Authentication\Mfa\MfaProviderPropertyManager
Definition: MfaProviderPropertyManager.php:33
‪TYPO3\CMS\Core\Authentication\Event\MfaVerificationFailedEvent\getUser
‪getUser()
Definition: MfaVerificationFailedEvent.php:38
‪TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
Definition: AbstractUserAuthentication.php:65