|
@@ 740-752 (lines=13) @@
|
| 737 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 738 |
|
} |
| 739 |
|
|
| 740 |
|
protected function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event) |
| 741 |
|
{ |
| 742 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 743 |
|
$event->secondFactorId, |
| 744 |
|
$this, |
| 745 |
|
new SecondFactorType('yubikey'), |
| 746 |
|
$event->yubikeyPublicId, |
| 747 |
|
$event->registrationRequestedAt, |
| 748 |
|
$event->registrationCode |
| 749 |
|
); |
| 750 |
|
|
| 751 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
protected function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
| 755 |
|
{ |
|
@@ 768-780 (lines=13) @@
|
| 765 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 766 |
|
} |
| 767 |
|
|
| 768 |
|
protected function applyPhonePossessionProvenAndVerifiedEvent(PhonePossessionProvenAndVerifiedEvent $event) |
| 769 |
|
{ |
| 770 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 771 |
|
$event->secondFactorId, |
| 772 |
|
$this, |
| 773 |
|
new SecondFactorType('sms'), |
| 774 |
|
$event->phoneNumber, |
| 775 |
|
$event->registrationRequestedAt, |
| 776 |
|
$event->registrationCode |
| 777 |
|
); |
| 778 |
|
|
| 779 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 780 |
|
} |
| 781 |
|
|
| 782 |
|
protected function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
| 783 |
|
{ |
|
@@ 796-808 (lines=13) @@
|
| 793 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 794 |
|
} |
| 795 |
|
|
| 796 |
|
protected function applyGssfPossessionProvenAndVerifiedEvent(GssfPossessionProvenAndVerifiedEvent $event) |
| 797 |
|
{ |
| 798 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 799 |
|
$event->secondFactorId, |
| 800 |
|
$this, |
| 801 |
|
new SecondFactorType((string) $event->stepupProvider), |
| 802 |
|
$event->gssfId, |
| 803 |
|
$event->registrationRequestedAt, |
| 804 |
|
$event->registrationCode |
| 805 |
|
); |
| 806 |
|
|
| 807 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 808 |
|
} |
| 809 |
|
|
| 810 |
|
protected function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
| 811 |
|
{ |
|
@@ 824-836 (lines=13) @@
|
| 821 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 822 |
|
} |
| 823 |
|
|
| 824 |
|
protected function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event) |
| 825 |
|
{ |
| 826 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 827 |
|
$event->secondFactorId, |
| 828 |
|
$this, |
| 829 |
|
new SecondFactorType('u2f'), |
| 830 |
|
$event->keyHandle, |
| 831 |
|
$event->registrationRequestedAt, |
| 832 |
|
$event->registrationCode |
| 833 |
|
); |
| 834 |
|
|
| 835 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 836 |
|
} |
| 837 |
|
|
| 838 |
|
protected function applyEmailVerifiedEvent(EmailVerifiedEvent $event) |
| 839 |
|
{ |