| @@ 55-58 (lines=4) @@ | ||
| 52 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 53 | $logger->notice('Showing Initiate GSSF Verification Screen', ['provider' => $provider]); |
|
| 54 | ||
| 55 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 56 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 57 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 58 | } |
|
| 59 | ||
| 60 | return $this->renderInitiateForm($procedureId, $this->getProvider($provider)->getName()); |
|
| 61 | } |
|
| @@ 77-80 (lines=4) @@ | ||
| 74 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 75 | $logger->notice('Generating GSSF verification request', ['provider' => $provider]); |
|
| 76 | ||
| 77 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 78 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 79 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 80 | } |
|
| 81 | ||
| 82 | $provider = $this->getProvider($provider); |
|
| 83 | ||
| @@ 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); |
|
| @@ 135-138 (lines=4) @@ | ||
| 132 | { |
|
| 133 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 134 | ||
| 135 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 136 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 137 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 138 | } |
|
| 139 | ||
| 140 | $this->getVettingService()->cancelProcedure($procedureId); |
|
| 141 | $this->addFlash('info', $this->get('translator')->trans('ra.vetting.flash.cancelled')); |
|
| @@ 159-162 (lines=4) @@ | ||
| 156 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 157 | $logger->notice('Verify Identity Form requested'); |
|
| 158 | ||
| 159 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 160 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 161 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 162 | } |
|
| 163 | ||
| 164 | $command = new VerifyIdentityCommand(); |
|
| 165 | $form = $this->createForm('ra_verify_identity', $command)->handleRequest($request); |
|