getIntegration($integration); $message = $authIntegration->authenticateIntegration($request); } catch (UnauthorizedException $exception) { $message = $exception->getMessage(); $authenticationError = true; } catch (IntegrationNotFoundException) { return $this->notFound(); } return $this->render( '@Integrations/Auth/authenticated.html.twig', [ 'message' => $message, 'authenticationError' => $authenticationError, ] ); } }