| @@ 120-135 (lines=16) @@ | ||
| 117 | $this->raSecondFactorRepository->save($secondFactor); |
|
| 118 | } |
|
| 119 | ||
| 120 | public function applyYubikeyPossessionProvenEvent(YubikeyPossessionProvenEvent $event) |
|
| 121 | { |
|
| 122 | $identity = $this->identityRepository->find((string) $event->identityId); |
|
| 123 | ||
| 124 | $this->raSecondFactorRepository->save( |
|
| 125 | new RaSecondFactor( |
|
| 126 | (string) $event->secondFactorId, |
|
| 127 | 'yubikey', |
|
| 128 | (string) $event->yubikeyPublicId, |
|
| 129 | $identity->id, |
|
| 130 | $identity->institution, |
|
| 131 | $event->commonName, |
|
| 132 | $event->email |
|
| 133 | ) |
|
| 134 | ); |
|
| 135 | } |
|
| 136 | ||
| 137 | public function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
|
| 138 | { |
|
| @@ 137-152 (lines=16) @@ | ||
| 134 | ); |
|
| 135 | } |
|
| 136 | ||
| 137 | public function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
|
| 138 | { |
|
| 139 | $identity = $this->identityRepository->find((string) $event->identityId); |
|
| 140 | ||
| 141 | $this->raSecondFactorRepository->save( |
|
| 142 | new RaSecondFactor( |
|
| 143 | (string) $event->secondFactorId, |
|
| 144 | 'sms', |
|
| 145 | (string) $event->phoneNumber, |
|
| 146 | $identity->id, |
|
| 147 | $identity->institution, |
|
| 148 | $event->commonName, |
|
| 149 | $event->email |
|
| 150 | ) |
|
| 151 | ); |
|
| 152 | } |
|
| 153 | ||
| 154 | public function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
|
| 155 | { |
|
| @@ 154-169 (lines=16) @@ | ||
| 151 | ); |
|
| 152 | } |
|
| 153 | ||
| 154 | public function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
|
| 155 | { |
|
| 156 | $identity = $this->identityRepository->find((string) $event->identityId); |
|
| 157 | ||
| 158 | $this->raSecondFactorRepository->save( |
|
| 159 | new RaSecondFactor( |
|
| 160 | (string) $event->secondFactorId, |
|
| 161 | (string) $event->stepupProvider, |
|
| 162 | (string) $event->gssfId, |
|
| 163 | $identity->id, |
|
| 164 | $identity->institution, |
|
| 165 | $event->commonName, |
|
| 166 | $event->email |
|
| 167 | ) |
|
| 168 | ); |
|
| 169 | } |
|
| 170 | ||
| 171 | public function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
|
| 172 | { |
|
| @@ 171-186 (lines=16) @@ | ||
| 168 | ); |
|
| 169 | } |
|
| 170 | ||
| 171 | public function applyU2fDevicePossessionProvenEvent(U2fDevicePossessionProvenEvent $event) |
|
| 172 | { |
|
| 173 | $identity = $this->identityRepository->find((string) $event->identityId); |
|
| 174 | ||
| 175 | $this->raSecondFactorRepository->save( |
|
| 176 | new RaSecondFactor( |
|
| 177 | (string) $event->secondFactorId, |
|
| 178 | 'u2f', |
|
| 179 | $event->keyHandle->getValue(), |
|
| 180 | $identity->id, |
|
| 181 | $identity->institution, |
|
| 182 | $event->commonName, |
|
| 183 | $event->email |
|
| 184 | ) |
|
| 185 | ); |
|
| 186 | } |
|
| 187 | ||
| 188 | public function applyEmailVerifiedEvent(EmailVerifiedEvent $event) |
|
| 189 | { |
|