Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function start(Request $request, AuthenticationException $authException = null)
 {
     if (!$this->httpUtils->checkRequestPath($request, $this->checkPath)) {
         if ($this->httpUtils->checkRequestPath($request, $this->loginPath)) {
             $request->getSession()->remove('_security.target_path');
         }
         $authorizationUrl = $this->oauthProvider->getAuthorizationUrl($request);
         return $this->httpUtils->createRedirectResponse($request, $authorizationUrl);
     }
     throw $authException;
 }