| @@ 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'); |
|
| @@ 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 | ||
| @@ 52-55 (lines=4) @@ | ||
| 49 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 50 | $logger->notice('Received request for Send SMS Challenge page'); |
|
| 51 | ||
| 52 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 53 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 54 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 55 | } |
|
| 56 | ||
| 57 | $command = new SendSmsChallengeCommand(); |
|
| 58 | $form = $this->createForm(SendSmsChallengeType::class, $command)->handleRequest($request); |
|
| @@ 47-50 (lines=4) @@ | ||
| 44 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 45 | $logger->notice('Requested Yubikey Verfication'); |
|
| 46 | ||
| 47 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 48 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 49 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 50 | } |
|
| 51 | ||
| 52 | $command = new VerifyYubikeyPublicIdCommand(); |
|
| 53 | $form = $this->createForm(VerifyYubikeyPublicIdType::class, $command)->handleRequest($request); |
|
| @@ 176-179 (lines=4) @@ | ||
| 173 | { |
|
| 174 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 175 | ||
| 176 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 177 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 178 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 179 | } |
|
| 180 | ||
| 181 | $this->getVettingService()->cancelProcedure($procedureId); |
|
| 182 | $this->addFlash('info', $this->get('translator')->trans('ra.vetting.flash.cancelled')); |
|
| @@ 203-206 (lines=4) @@ | ||
| 200 | $logger = $this->get('ra.procedure_logger')->forProcedure($procedureId); |
|
| 201 | $logger->notice('Verify Identity Form requested'); |
|
| 202 | ||
| 203 | if (!$this->getVettingService()->hasProcedure($procedureId)) { |
|
| 204 | $logger->notice(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 205 | throw new NotFoundHttpException(sprintf('Vetting procedure "%s" not found', $procedureId)); |
|
| 206 | } |
|
| 207 | ||
| 208 | $command = new VerifyIdentityCommand(); |
|
| 209 | $form = $this->createForm(VerifyIdentityType::class, $command)->handleRequest($request); |
|