| @@ 47-50 (lines=4) @@ | ||
| 44 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 45 | $logger->notice('Suggesting RA start U2F authentication'); |
|
| 46 | ||
| 47 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 48 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 49 | throw $this->createNotFoundException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 50 | } |
|
| 51 | ||
| 52 | return ['procedureId' => $procedureId]; |
|
| 53 | } |
|
| @@ 70-73 (lines=4) @@ | ||
| 67 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 68 | $logger->notice('Requested U2F Verfication'); |
|
| 69 | ||
| 70 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 71 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 72 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 73 | } |
|
| 74 | ||
| 75 | $service = $this->getVettingService(); |
|
| 76 | $session = $this->get('ra.session.u2f'); |
|
| @@ 46-49 (lines=4) @@ | ||
| 43 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 44 | $logger->notice('Requested Yubikey Verfication'); |
|
| 45 | ||
| 46 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 47 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 48 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 49 | } |
|
| 50 | ||
| 51 | $command = new VerifyYubikeyPublicIdCommand(); |
|
| 52 | $form = $this->createForm('ra_verify_yubikey_public_id', $command)->handleRequest($request); |
|
| @@ 50-53 (lines=4) @@ | ||
| 47 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 48 | $logger->notice('Received request for Send SMS Challenge page'); |
|
| 49 | ||
| 50 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 51 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 52 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 53 | } |
|
| 54 | ||
| 55 | $command = new SendSmsChallengeCommand(); |
|
| 56 | $form = $this->createForm('ra_send_sms_challenge', $command)->handleRequest($request); |
|
| @@ 57-60 (lines=4) @@ | ||
| 54 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 55 | $logger->notice('Showing Initiate GSSF Verification Screen', ['provider' => $provider]); |
|
| 56 | ||
| 57 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 58 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 59 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 60 | } |
|
| 61 | ||
| 62 | return $this->renderInitiateForm($procedureId, $this->getProvider($provider)->getName()); |
|
| 63 | } |
|
| @@ 79-82 (lines=4) @@ | ||
| 76 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 77 | $logger->notice('Generating GSSF verification request', ['provider' => $provider]); |
|
| 78 | ||
| 79 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 80 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 81 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 82 | } |
|
| 83 | ||
| 84 | $provider = $this->getProvider($provider); |
|
| 85 | ||
| @@ 174-177 (lines=4) @@ | ||
| 171 | { |
|
| 172 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 173 | ||
| 174 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 175 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 176 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 177 | } |
|
| 178 | ||
| 179 | $this->getVettingService()->cancelProcedure($procedureId); |
|
| 180 | $this->addFlash('info', $this->get('translator')->trans('ra.vetting.flash.cancelled')); |
|
| @@ 198-201 (lines=4) @@ | ||
| 195 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 196 | $logger->notice('Verify Identity Form requested'); |
|
| 197 | ||
| 198 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 199 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 200 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 201 | } |
|
| 202 | ||
| 203 | $command = new VerifyIdentityCommand(); |
|
| 204 | $form = $this->createForm('ra_verify_identity', $command)->handleRequest($request); |
|