forked from escapevisual/openid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
54 lines (49 loc) · 2.15 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
43
44
45
46
47
48
49
50
51
52
53
54
<?php
defined('TYPO3_MODE') || die();
// Register OpenID processing service with TYPO3
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'openid',
'auth',
'tx_openid_service_process',
[
'title' => 'OpenID Authentication',
'description' => 'OpenID processing login information service for Frontend and Backend',
'subtype' => 'processLoginDataBE,processLoginDataFE',
'available' => true,
'priority' => 35,
// Must be lower than for \TYPO3\CMS\Sv\AuthenticationService (50) to let other processing take place before
'quality' => 50,
'os' => '',
'exec' => '',
'className' => \FoT3\Openid\OpenidService::class
]
);
// Register OpenID authentication service with TYPO3
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'openid',
'auth',
'tx_openid_service',
[
'title' => 'OpenID Authentication',
'description' => 'OpenID authentication service for Frontend and Backend',
'subtype' => 'getUserFE,authUserFE,getUserBE,authUserBE',
'available' => true,
'priority' => 75,
// Must be higher than for \TYPO3\CMS\Sv\AuthenticationService (50) or \TYPO3\CMS\Sv\AuthenticationService will log failed login attempts
'quality' => 50,
'os' => '',
'exec' => '',
'className' => \FoT3\Openid\OpenidService::class
]
);
// Register eID script that performs final FE user authentication. It will be called by the OpenID provider
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_openid'] = \FoT3\Openid\OpenidEid::class . '::processRequest';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['accessLevelCheck'][\FoT3\Openid\OpenidModuleSetup::class] = '';
// Use popup window to refresh login instead of the AJAX relogin:
$GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] = 1;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][1433416748] = [
'provider' => \FoT3\Openid\LoginProvider\OpenIdLoginProvider::class,
'sorting' => 25,
'icon-class' => 'fa-openid',
'label' => 'LLL:EXT:openid/Resources/Private/Language/locallang.xlf:login.link'
];