/**
  * @return boolean
  */
 public function init()
 {
     // extbase bootstrap
     $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->typoScriptService = $this->objectManager->get('AP\\ApLdapAuth\\Sv\\TypoScriptService');
     $this->initializeRequiredTsfeParts();
     $this->initializeExtbaseFramework();
     $this->initTCA();
     return parent::init();
 }
 /**
  * Checks if service is available. In case of this service we check that
  * following prerequesties are fulfilled:
  * - loginSecurityLevel of according TYPO3_MODE is set to normal
  *
  * @return bool TRUE if service is available
  */
 public function init()
 {
     $available = false;
     $mode = TYPO3_MODE;
     if ($this->info['requestedServiceSubType'] === 'authUserBE') {
         $mode = 'BE';
     } elseif ($this->info['requestedServiceSubType'] === 'authUserFE') {
         $mode = 'FE';
     }
     if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled($mode)) {
         $available = true;
         $this->extConf = \TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::returnExtConf();
     }
     return $available ? parent::init() : false;
 }
 public function initAuth($mode, $loginData, $authInfo, $pObj)
 {
     $this->singleSignOnUtility = $this->objectManager->get(SingleSignOnUtility::class);
     if (isset($_REQUEST['pid'])) {
         $this->db_user['check_pid_clause'] = ' AND pid IN (' . $this->db->cleanIntList($_REQUEST['pid']) . ')';
     }
     if (isset($_REQUEST['tx_pxhybridauth_login']['redirect_url'])) {
         $this->redirectUrl = $_REQUEST['tx_pxhybridauth_login']['redirect_url'];
     }
     if (isset($_REQUEST['tx_pxhybridauth_login']['redirect_pid'])) {
         $this->redirectPid = $_REQUEST['tx_pxhybridauth_login']['redirect_pid'];
     }
     if (isset($_REQUEST['tx_pxhybridauth_login']['provider'])) {
         $this->provider = $_REQUEST['tx_pxhybridauth_login']['provider'];
     }
     parent::initAuth($mode, $loginData, $authInfo, $pObj);
 }
 public function init()
 {
     $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['px_ipauth']);
     return parent::init();
 }
 /**
  * Initializes authentication for this service.
  *
  * @param string $subType: Subtype for authentication (either "getUserFE" or "getUserBE")
  * @param array $loginData: Login data submitted by user and preprocessed by AbstractUserAuthentication
  * @param array $authenticationInformation: Additional TYPO3 information for authentication services (unused here)
  * @param AbstractUserAuthentication $parentObject Calling object
  * @return void
  */
 public function initAuth($subType, $loginData, $authenticationInformation, $parentObject)
 {
     $this->authUtility = $this->objectManager->get('MV\\SocialAuth\\Utility\\AuthUtility');
     // Store login and authetication data
     $this->loginData = $loginData;
     $this->authenticationInformation = $authenticationInformation;
     $this->parentObject = $parentObject;
     parent::initAuth($subType, $loginData, $authenticationInformation, $parentObject);
 }