public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
    {
        $this->dispatcher->dispatch(self::OAUTH_LOGIN_FAILURE, new AuthFailedEvent($request, $exception));

        return $this->removeAuthCookieFromResponse(new Response(
            $this->twig->render('@StarterKitStart/oauth-failure.html.twig', ['login_path' => $this->loginPath])
        ));
    }