@@ 48-61 (lines=14) @@ | ||
45 | $this->repository = $repository; |
|
46 | } |
|
47 | ||
48 | public function applyYubikeySecondFactorBootstrappedEvent(YubikeySecondFactorBootstrappedEvent $event) |
|
49 | { |
|
50 | $this->repository->save( |
|
51 | new SecondFactor( |
|
52 | (string) $event->identityId, |
|
53 | (string) $event->nameId, |
|
54 | (string) $event->identityInstitution, |
|
55 | (string) $event->preferredLocale, |
|
56 | (string) $event->secondFactorId, |
|
57 | (string) $event->yubikeyPublicId, |
|
58 | 'yubikey' |
|
59 | ) |
|
60 | ); |
|
61 | } |
|
62 | ||
63 | public function applySecondFactorVettedEvent(SecondFactorVettedEvent $event) |
|
64 | { |
|
@@ 63-76 (lines=14) @@ | ||
60 | ); |
|
61 | } |
|
62 | ||
63 | public function applySecondFactorVettedEvent(SecondFactorVettedEvent $event) |
|
64 | { |
|
65 | $this->repository->save( |
|
66 | new SecondFactor( |
|
67 | (string) $event->identityId, |
|
68 | (string) $event->nameId, |
|
69 | (string) $event->identityInstitution, |
|
70 | (string) $event->preferredLocale, |
|
71 | (string) $event->secondFactorId, |
|
72 | $event->secondFactorIdentifier, |
|
73 | $event->secondFactorType |
|
74 | ) |
|
75 | ); |
|
76 | } |
|
77 | ||
78 | public function applySecondFactorVettedWithoutTokenProofOfPossession(SecondFactorVettedWithoutTokenProofOfPossession $event) |
|
79 | { |
|
@@ 78-91 (lines=14) @@ | ||
75 | ); |
|
76 | } |
|
77 | ||
78 | public function applySecondFactorVettedWithoutTokenProofOfPossession(SecondFactorVettedWithoutTokenProofOfPossession $event) |
|
79 | { |
|
80 | $this->repository->save( |
|
81 | new SecondFactor( |
|
82 | (string) $event->identityId, |
|
83 | (string) $event->nameId, |
|
84 | (string) $event->identityInstitution, |
|
85 | (string) $event->preferredLocale, |
|
86 | (string) $event->secondFactorId, |
|
87 | $event->secondFactorIdentifier, |
|
88 | $event->secondFactorType |
|
89 | ) |
|
90 | ); |
|
91 | } |
|
92 | ||
93 | protected function applyVettedSecondFactorRevokedEvent(VettedSecondFactorRevokedEvent $event) |
|
94 | { |