TYPO3 API  SVNRelease
ext_localconf.php
Go to the documentation of this file.
00001 <?php
00002 if (!defined ('TYPO3_MODE')) {
00003     die ('Access denied.');
00004 }
00005 
00006 // Add the service
00007 t3lib_extMgm::addService($_EXTKEY,  'auth' /* sv type */,  'tx_rsaauth_sv1' /* sv key */,
00008     array(
00009         'title' => 'RSA authentication',
00010         'description' => 'Authenticates users by using encrypted passwords',
00011 
00012         'subtype' => 'getUserBE,authUserBE,getUserFE,authUserFE',
00013 
00014         'available' => TRUE,
00015         'priority' => 60,   // tx_svauth_sv1 has 50, t3sec_saltedpw has 55. This service must have higher priority!
00016         'quality' => 60,    // tx_svauth_sv1 has 50. This service must have higher quality!
00017 
00018         'os' => '',
00019         'exec' => '',       // Do not put a dependency on openssh here or service loading will fail!
00020 
00021         'classFile' => t3lib_extMgm::extPath($_EXTKEY) . 'sv1/class.tx_rsaauth_sv1.php',
00022         'className' => 'tx_rsaauth_sv1',
00023     )
00024 );
00025 
00026 // Add a hook to the BE login form
00027 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_rsaauth_loginformhook.php:tx_rsaauth_loginformhook->getLoginFormTag';
00028 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_rsaauth_loginformhook.php:tx_rsaauth_loginformhook->getLoginScripts';
00029 
00030 // Add a hook to the FE login form (felogin system extension)
00031 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_rsaauth_feloginhook.php:tx_rsaauth_feloginhook->loginFormHook';
00032 
00033 // Add a hook to show Backend warnings
00034 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_rsaauth_backendwarnings.php:tx_rsaauth_backendwarnings';
00035 
00036 // Use popup window to refresh login instead of the AJAX relogin:
00037 $TYPO3_CONF_VARS['BE']['showRefreshLoginPopup'] = 1;
00038 ?>