-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
51 lines (43 loc) · 1.42 KB
/
ext_localconf.php
File metadata and controls
51 lines (43 loc) · 1.42 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* This file is part of the TeamNeustaGmbH/m2t3 package.
*
* Copyright (c) 2017 neusta GmbH | Ein team neusta Unternehmen
*
* For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
*
* @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause License
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (!empty($EXT_CONFIG) && $EXT_CONFIG['enableFetchUserIfNoSession']) {
$TYPO3_CONF_VARS['SVCONF']['auth']['setup']['FE_fetchUserIfNoSession'] = 1;
} else {
$TYPO3_CONF_VARS['SVCONF']['auth']['setup']['FE_alwaysFetchUser'] = 1;
}
// m2t3_sso
if (empty($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['SSO'])) {
$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY] = [
'SSO' => [
'url' => '',
'cookieName' => ''
]
];
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
$_EXTKEY,
'auth' /* sv type */,
\TeamNeustaGmbH\M2T3\Sso\Service\AuthenticationService::class /* sv key */,
[
'title' => 'Authentication service',
'description' => 'Authentication service for LDAP and SSO environment.',
'subtype' => 'getUserFE,authUserFE',
'available' => true,
'priority' => 80,
'quality' => 80,
'os' => '',
'exec' => '',
'className' => \TeamNeustaGmbH\M2T3\Sso\Service\AuthenticationService::class,
]
);