ext_localconf.php 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. defined('TYPO3') || die();
  3. // Register Opentalent authentication service with TYPO3
  4. \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
  5. 'ot_connect',
  6. 'auth',
  7. 'tx_otconnect_service',
  8. [
  9. 'title' => 'Opentalent Authentication',
  10. 'description' => 'Opentalent authentication service for Frontend and Backend',
  11. 'subtype' => 'getUserFE,authUserFE,getUserBE,authUserBE',
  12. 'available' => true,
  13. 'priority' => 80,
  14. // Priority must be higher than the priority of \TYPO3\CMS\Sv\AuthenticationService (50), or else failed login attempts will be logged each time
  15. 'quality' => 80,
  16. 'os' => '',
  17. 'exec' => '',
  18. 'className' => \Opentalent\OtConnect\Service\OtAuthenticationService::class
  19. ]
  20. );
  21. # Always fetch FE user, since the previous one could have been disconnected from the Opentalent API since
  22. $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_alwaysFetchUser'] = true;
  23. $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_alwaysAuthUser'] = true;
  24. // Use popup window to refresh login instead of the AJAX relogin:
  25. $GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] = 1;
  26. $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postLoginFailureProcessing'][] =
  27. \Opentalent\OtConnect\Hooks\PostLoginFailureProcessingHook::class . '->postLoginFailureProcessing';