-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_localconf.php
50 lines (43 loc) · 2.04 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
<?php
/*
* This file is part of the "be_google_auth" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
defined('TYPO3_MODE') || die();
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders']['google_auth'] = [
'provider' => \Codemonkey1988\BeGoogleAuth\LoginProvider\GoogleAuthProvider::class,
'sorting' => 25,
'icon-class' => 'fa-google',
'label' => 'LLL:EXT:be_google_auth/Resources/Private/Language/locallang_be.xlf:backendLogin.switch.label'
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'be_google_auth',
'auth',
'tx_googlelogin_service',
[
'title' => 'Google Login Authentication',
'description' => 'Google oAuth2 login service for backend',
'subtype' => 'getUserBE,authUserBE',
'available' => true,
'priority' => 75,
'quality' => 50,
'os' => '',
'exec' => '',
'className' => \Codemonkey1988\BeGoogleAuth\Service\GoogleAuthenticationService::class
]
);
$GLOBALS['T3_SERVICES']['auth']['TYPO3\CMS\Sv\AuthenticationService']['className'] = \Codemonkey1988\BeGoogleAuth\Service\ExtendedAuthenticationService::class;
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-begoogleauth-logo',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:be_google_auth/Resources/Public/Icons/Logo.svg']
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\Codemonkey1988\BeGoogleAuth\Task\CleanupBackendUsersTask::class] = [
'extension' => 'be_google_auth',
'title' => 'LLL:EXT:be_google_auth/Resources/Private/Language/locallang_be.xlf:scheulder.task.title',
'description' => 'LLL:EXT:be_google_auth/Resources/Private/Language/locallang_be.xlf:scheulder.task.description',
'additionalFields' => \Codemonkey1988\BeGoogleAuth\Task\CleanupBackendUsersFieldProvider::class,
];