forked from DMKEBUSINESSGMBH/mksamlauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
42 lines (38 loc) · 1.22 KB
/
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
34
35
36
37
38
39
40
41
42
<?php
/**
* Ext_localconf
*
* @category TYPO3-Extension
* @package DMK\SamlAuth
* @author Eric Hertwig <[email protected]>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link https://www.dmk-ebusiness.de/
*/
use DMK\MKSamlAuth\Authentication\SamlAuth;
use DMK\MKSamlAuth\EnricherRegistry;
use DMK\MKSamlAuth\Enricher;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
ExtensionManagementUtility::addService(
$_EXTKEY,
'auth',
SamlAuth::class,
[
'title' => 'Saml-Auth FE-User',
'description' => 'Authenticates FE-Users/groups via Saml',
'subtype' => 'authUserFE,getUserFE',
'available' => true,
'priority' => 70,
'quality' => 70,
'os' => '',
'exec' => '',
'className' => SamlAuth::class,
]
);
EnricherRegistry::register(Enricher\DummyPasswordEnricher::class, 100);
EnricherRegistry::register(Enricher\SamlHostnameEnricher::class, 100);
EnricherRegistry::register(Enricher\SimpleAttributeEnricher::class);
EnricherRegistry::register(Enricher\SSOGroupEnricher::class, 10);
EnricherRegistry::register(Enricher\DefaultGroupEnricher::class);