@@ 788-800 (lines=13) @@ | ||
785 | $this->vettedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
786 | } |
|
787 | ||
788 | protected function applyYubikeyPossessionProvenEvent(YubikeyPossessionProvenEvent $event) |
|
789 | { |
|
790 | $secondFactor = UnverifiedSecondFactor::create( |
|
791 | $event->secondFactorId, |
|
792 | $this, |
|
793 | new SecondFactorType('yubikey'), |
|
794 | $event->yubikeyPublicId, |
|
795 | $event->emailVerificationWindow, |
|
796 | $event->emailVerificationNonce |
|
797 | ); |
|
798 | ||
799 | $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
800 | } |
|
801 | ||
802 | protected function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event) |
|
803 | { |
|
@@ 816-828 (lines=13) @@ | ||
813 | $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
814 | } |
|
815 | ||
816 | protected function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
|
817 | { |
|
818 | $secondFactor = UnverifiedSecondFactor::create( |
|
819 | $event->secondFactorId, |
|
820 | $this, |
|
821 | new SecondFactorType('sms'), |
|
822 | $event->phoneNumber, |
|
823 | $event->emailVerificationWindow, |
|
824 | $event->emailVerificationNonce |
|
825 | ); |
|
826 | ||
827 | $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
828 | } |
|
829 | ||
830 | protected function applyPhonePossessionProvenAndVerifiedEvent(PhonePossessionProvenAndVerifiedEvent $event) |
|
831 | { |
|
@@ 844-856 (lines=13) @@ | ||
841 | $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
842 | } |
|
843 | ||
844 | protected function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
|
845 | { |
|
846 | $secondFactor = UnverifiedSecondFactor::create( |
|
847 | $event->secondFactorId, |
|
848 | $this, |
|
849 | new SecondFactorType((string)$event->stepupProvider), |
|
850 | $event->gssfId, |
|
851 | $event->emailVerificationWindow, |
|
852 | $event->emailVerificationNonce |
|
853 | ); |
|
854 | ||
855 | $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
856 | } |
|
857 | ||
858 | protected function applyGssfPossessionProvenAndVerifiedEvent(GssfPossessionProvenAndVerifiedEvent $event) |
|
859 | { |
|
@@ 872-884 (lines=13) @@ | ||
869 | $this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
870 | } |
|
871 | ||
872 | protected function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
|
873 | { |
|
874 | $secondFactor = UnverifiedSecondFactor::create( |
|
875 | $event->secondFactorId, |
|
876 | $this, |
|
877 | new SecondFactorType('u2f'), |
|
878 | $event->keyHandle, |
|
879 | $event->emailVerificationWindow, |
|
880 | $event->emailVerificationNonce |
|
881 | ); |
|
882 | ||
883 | $this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
|
884 | } |
|
885 | ||
886 | protected function applyU2fDevicePossessionProvenAndVerifiedEvent(U2fDevicePossessionProvenAndVerifiedEvent $event) |
|
887 | { |