[TASK] Document support of MySQL Strict mode
[Packages/TYPO3.CMS.git] / typo3 / sysext / rsaauth / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Add the service
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService('rsaauth', 'auth', \TYPO3\CMS\Rsaauth\RsaAuthService::class, array(
6 'title' => 'RSA authentication',
7 'description' => 'Authenticates users by using encrypted passwords',
8 'subtype' => 'processLoginDataBE,processLoginDataFE',
9 'available' => true,
10 'priority' => 60,
11 // tx_svauth_sv1 has 50, t3sec_saltedpw has 55. This service must have higher priority!
12 'quality' => 60,
13 // tx_svauth_sv1 has 50. This service must have higher quality!
14 'os' => '',
15 'exec' => '',
16 // Do not put a dependency on openssh here or service loading will fail!
17 'className' => \TYPO3\CMS\Rsaauth\RsaAuthService::class
18 ));
19
20 // Add hook for user setup module
21 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['setupScriptHook']['rsaauth'] = \TYPO3\CMS\Rsaauth\Hook\UserSetupHook::class . '->getLoginScripts';
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['modifyUserDataBeforeSave']['rsaauth'] = \TYPO3\CMS\Rsaauth\Hook\UserSetupHook::class . '->decryptPassword';
23 // Add a hook to the FE login form (felogin system extension)
24 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs']['rsaauth'] = \TYPO3\CMS\Rsaauth\Hook\FrontendLoginHook::class . '->loginFormHook';
25 // Add a hook to show Backend warnings
26 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages']['rsaauth'] = \TYPO3\CMS\Rsaauth\BackendWarnings::class;
27
28 // eID for FrontendLoginRsaPublicKey
29 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['RsaPublicKeyGenerationController'] = \TYPO3\CMS\Rsaauth\Controller\RsaPublicKeyGenerationController::class . '::processRequest';
30
31 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
32 \TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider::class,
33 \TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider::SIGNAL_getPageRenderer,
34 \TYPO3\CMS\Rsaauth\Slot\UsernamePasswordProviderSlot::class,
35 'getPageRenderer'
36 );
37
38 // Register automatic decryption in DataHandler
39 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['rsaauth'] = \TYPO3\CMS\Rsaauth\Hook\DecryptionHook::class;
40
41 // Add own form element
42 $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1436965601] = array(
43 'nodeName' => 'rsaInput',
44 'priority' => '70',
45 'class' => \TYPO3\CMS\Rsaauth\Form\Element\RsaInputElement::class,
46 );