-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
33 lines (24 loc) · 987 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
23
24
25
26
27
28
29
30
31
32
33
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
defined('TYPO3') or die();
(function () {
$GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_fetchUserIfNoSession'] = true;
$GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_alwaysAuthUser'] = true;
$GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_alwaysFetchUser'] = true;
ExtensionManagementUtility::addService(
'kuhschnappel_authtoken',
'auth',
\Kuhschnappel\Authtoken\Service\AuthenticatorService::class,
[
'title' => 'Authentication',
'description' => 'An alternative way to access restricted content by token',
'subtype' => 'authUserFE,getUserFE',
'available' => true,
'priority' => 60,
'quality' => 80,
'os' => '',
'exec' => '',
'className' => \Kuhschnappel\Authtoken\Service\AuthenticatorService::class
]
);
})();