|
@@ 736-748 (lines=13) @@
|
| 733 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
protected function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event) |
| 737 |
|
{ |
| 738 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 739 |
|
$event->secondFactorId, |
| 740 |
|
$this, |
| 741 |
|
new SecondFactorType('yubikey'), |
| 742 |
|
$event->yubikeyPublicId, |
| 743 |
|
$event->registrationRequestedAt, |
| 744 |
|
$event->registrationCode |
| 745 |
|
); |
| 746 |
|
|
| 747 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 748 |
|
} |
| 749 |
|
|
| 750 |
|
protected function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
| 751 |
|
{ |
|
@@ 764-776 (lines=13) @@
|
| 761 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 762 |
|
} |
| 763 |
|
|
| 764 |
|
protected function applyPhonePossessionProvenAndVerifiedEvent(PhonePossessionProvenAndVerifiedEvent $event) |
| 765 |
|
{ |
| 766 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 767 |
|
$event->secondFactorId, |
| 768 |
|
$this, |
| 769 |
|
new SecondFactorType('sms'), |
| 770 |
|
$event->phoneNumber, |
| 771 |
|
$event->registrationRequestedAt, |
| 772 |
|
$event->registrationCode |
| 773 |
|
); |
| 774 |
|
|
| 775 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 776 |
|
} |
| 777 |
|
|
| 778 |
|
protected function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
| 779 |
|
{ |
|
@@ 792-804 (lines=13) @@
|
| 789 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 790 |
|
} |
| 791 |
|
|
| 792 |
|
protected function applyGssfPossessionProvenAndVerifiedEvent(GssfPossessionProvenAndVerifiedEvent $event) |
| 793 |
|
{ |
| 794 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 795 |
|
$event->secondFactorId, |
| 796 |
|
$this, |
| 797 |
|
new SecondFactorType((string) $event->stepupProvider), |
| 798 |
|
$event->gssfId, |
| 799 |
|
$event->registrationRequestedAt, |
| 800 |
|
$event->registrationCode |
| 801 |
|
); |
| 802 |
|
|
| 803 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 804 |
|
} |
| 805 |
|
|
| 806 |
|
protected function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
| 807 |
|
{ |
|
@@ 820-832 (lines=13) @@
|
| 817 |
|
$this->unverifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 818 |
|
} |
| 819 |
|
|
| 820 |
|
protected function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event) |
| 821 |
|
{ |
| 822 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 823 |
|
$event->secondFactorId, |
| 824 |
|
$this, |
| 825 |
|
new SecondFactorType('u2f'), |
| 826 |
|
$event->keyHandle, |
| 827 |
|
$event->registrationRequestedAt, |
| 828 |
|
$event->registrationCode |
| 829 |
|
); |
| 830 |
|
|
| 831 |
|
$this->verifiedSecondFactors->set((string) $secondFactor->getId(), $secondFactor); |
| 832 |
|
} |
| 833 |
|
|
| 834 |
|
protected function applyEmailVerifiedEvent(EmailVerifiedEvent $event) |
| 835 |
|
{ |