ext_localconf.php 1.0 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. defined('TYPO3_MODE') || 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 call the getUser method if no session is active
  22. $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_fetchUserIfNoSession'] = true;
  23. // Use popup window to refresh login instead of the AJAX relogin:
  24. $GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] = 1;