forked from derhansen/sf_yubikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
22 lines (20 loc) · 870 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService($_EXTKEY, 'auth',
'DERHANSEN\SfYubikey\YubikeyAuthService',
[
'title' => 'FE/BE YubiKey two-factor OTP Authentication',
'description' => 'Two-factor authentication with a YubiKey OTP',
'subtype' => 'authUserFE,authUserBE',
'available' => true,
'priority' => 80,
'quality' => 80,
'os' => '',
'exec' => '',
'className' => DERHANSEN\SfYubikey\YubikeyAuthService::class
]
);
$extConf = unserialize($TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY]);
if (isset($extConf['yubikeyEnableBE']) && (bool)$extConf['yubikeyEnableBE']) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][1433416747]['provider'] = DERHANSEN\SfYubikey\LoginProvider\YubikeyLoginProvider::class;
}