TYPO3 CMS  TYPO3_6-2
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 if (!defined('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 // Add the service
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService($_EXTKEY, 'auth', 'TYPO3\\CMS\\Rsaauth\\RsaAuthService', array(
7  'title' => 'RSA authentication',
8  'description' => 'Authenticates users by using encrypted passwords',
9  'subtype' => 'processLoginDataBE,processLoginDataFE',
10  'available' => TRUE,
11  'priority' => 60,
12  // tx_svauth_sv1 has 50, t3sec_saltedpw has 55. This service must have higher priority!
13  'quality' => 60,
14  // tx_svauth_sv1 has 50. This service must have higher quality!
15  'os' => '',
16  'exec' => '',
17  // Do not put a dependency on openssh here or service loading will fail!
18  'className' => 'TYPO3\\CMS\\Rsaauth\\RsaAuthService'
19 ));
20 
21 // Add a hook to the BE login form
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = 'TYPO3\\CMS\\Rsaauth\\Hook\\LoginFormHook->getLoginFormTag';
23 // Add hook for user setup module
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['setupScriptHook'][$_EXTKEY] = 'TYPO3\\CMS\\Rsaauth\\Hook\\UserSetupHook->getLoginScripts';
25 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['modifyUserDataBeforeSave'][$_EXTKEY] = 'TYPO3\\CMS\\Rsaauth\\Hook\\UserSetupHook->decryptPassword';
26 // Add a hook to the FE login form (felogin system extension)
27 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'][$_EXTKEY] = 'TYPO3\\CMS\\Rsaauth\\Hook\\FrontendLoginHook->loginFormHook';
28 // Add a hook to show Backend warnings
29 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'][$_EXTKEY] = 'TYPO3\\CMS\\Rsaauth\\BackendWarnings';
30 
32  'BackendLogin::getRsaPublicKey',
33  'TYPO3\\CMS\\Rsaauth\\Backend\\AjaxLoginHandler->getRsaPublicKey',
34  FALSE
35 );
36 
37 // eID for FrontendLoginRsaPublicKey
38 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['FrontendLoginRsaPublicKey'] =
39  'EXT:rsaauth/resources/Private/Php/FrontendLoginRsaPublicKey.php';
40 
41 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] = 'TYPO3\\CMS\\Rsaauth\\Hook\\BackendHookForAjaxLogin->addRsaJsLibraries';
static registerAjaxHandler($ajaxId, $callbackMethod, $csrfTokenCheck=TRUE)
static addService($extKey, $serviceType, $serviceKey, $info)
die
Definition: index.php:6
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]