/**
  * @param GetResponseEvent $event
  *
  * @throws ClientAccessDeniedHttpException
  */
 public function handle(GetResponseEvent $event)
 {
     $request = $event->getRequest();
     if ($this->securityContext->getToken() instanceof TokenInterface && $this->securityContext->getToken()->isAuthenticated()) {
         return;
     }
     if (!($accessToken = $request->get('access_token'))) {
         throw new ClientAccessDeniedHttpException();
     }
     $token = $this->authenticationManager->authenticate(OAuth2Token::create($accessToken));
     $this->securityContext->setToken($token);
 }