This repository was archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathext_localconf.php
79 lines (68 loc) · 4 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
defined('TYPO3') || die();
(static function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'oauth2_client',
'auth',
\Waldhacker\Oauth2Client\Authentication\BackendAuthenticationService::class,
[
'title' => 'OAuth2 Authentication',
'description' => 'OAuth2 authentication for backend users',
'subtype' => 'getUserBE,authUserBE,processLoginDataBE',
'available' => true,
'priority' => 75,
'quality' => 50,
'os' => '',
'exec' => '',
'className' => \Waldhacker\Oauth2Client\Authentication\BackendAuthenticationService::class
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'oauth2_client',
'auth',
\Waldhacker\Oauth2Client\Authentication\FrontendAuthenticationService::class,
[
'title' => 'OAuth2 Authentication',
'description' => 'OAuth2 authentication for frontend users',
'subtype' => 'getUserFE,authUserFE,processLoginDataFE',
'available' => true,
'priority' => 75,
'quality' => 50,
'os' => '',
'exec' => '',
'className' => \Waldhacker\Oauth2Client\Authentication\FrontendAuthenticationService::class
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'oauth2Client',
'ManageProviders',
[\Waldhacker\Oauth2Client\Controller\Frontend\ManageProvidersController::class => 'list,deactivate'],
[\Waldhacker\Oauth2Client\Controller\Frontend\ManageProvidersController::class => 'list,deactivate']
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'oauth2_client_plugin_manage_providers',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => 'EXT:oauth2_client/Resources/Public/Icons/oauth2_client_plugin_manage_providers.svg'
]
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][\Waldhacker\Oauth2Client\Backend\LoginProvider\Oauth2LoginProvider::PROVIDER_ID] = [
'provider' => \Waldhacker\Oauth2Client\Backend\LoginProvider\Oauth2LoginProvider::class,
'sorting' => 25,
'icon-class' => 'fa-key',
'label' => 'LLL:EXT:oauth2_client/Resources/Private/Language/locallang_be.xlf:login.link',
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1616684029] = [
'nodeName' => 'oauth2providers',
'priority' => '70',
'class' => \Waldhacker\Oauth2Client\Backend\Form\RenderType\Oauth2ProvidersElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['DB']['additionalQueryRestrictions'][\Waldhacker\Oauth2Client\Database\Query\Restriction\Oauth2BeUserProviderConfigurationRestriction::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['DB']['additionalQueryRestrictions'][\Waldhacker\Oauth2Client\Database\Query\Restriction\Oauth2FeUserProviderConfigurationRestriction::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][1625556930] = \Waldhacker\Oauth2Client\Backend\DataHandling\DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][1625556930] = \Waldhacker\Oauth2Client\Backend\DataHandling\DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][1625556930] = \Waldhacker\Oauth2Client\Backend\DataHandling\DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['oauth2_client_RenameClientConfigsTableUpdateWizard20220122130120'] = \Waldhacker\Oauth2Client\Updates\RenameClientConfigsTableUpdateWizard20220122130120::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['oauth2_client'] = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['oauth2_client'] ?? [];
})();