forked from georgringer/oidc-be
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
27 lines (24 loc) · 999 Bytes
/
ext_localconf.php
File metadata and controls
27 lines (24 loc) · 999 Bytes
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
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][1710277788] = [
'provider' => \GeorgRinger\OidcBe\Backend\OidcLoginProvider::class,
'sorting' => 50,
'iconIdentifier' => 'ext-oidcbe-icon',
'label' => 'Login with OpenID Connect',
];
$settings = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get('oidc') ?? [];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'oidc_be',
'auth',
\GeorgRinger\OidcBe\Service\OidcBeAuthService::class,
[
'title' => 'Authentication service',
'description' => 'Authentication service for OpenID Connect BE',
'subtype' => 'getUserBE,authUserBE',
'available' => true,
'priority' => 30,
'quality' => (int)($settings['authenticationServiceQuality'] ?? 80),
'os' => '',
'exec' => '',
'className' => \GeorgRinger\OidcBe\Service\OidcBeAuthService::class,
]
);