/**
  * @param $token Typo3OrgSsoToken
  * @throws StopActionException
  */
 public function authenticateAction(Typo3OrgSsoToken $token)
 {
     if ($token->isValid() && $this->typo3OrgSsoProvider->authenticate($token)) {
         $this->response->setStatus(200);
         $this->response->setContent('<html><head><script>window.close();</script></head></html>');
         throw new StopActionException();
     }
 }