ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilAuthProviderCliFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Cron\CronException
;
22
23
class
ilAuthProviderCliFactory
extends
ilAuthProviderFactory
24
{
25
public
function
getProviders
(
ilAuthCredentials
$credentials): array
26
{
27
return
[
28
$this->
getProviderByAuthMode
($credentials,
ilAuthUtils::AUTH_LOCAL
)
29
];
30
}
31
32
public
function
getProviderByAuthMode
(
ilAuthCredentials
$credentials, $a_authmode): ?
ilAuthProviderInterface
33
{
34
switch
((
int
) $a_authmode) {
35
case
ilAuthUtils::AUTH_LOCAL
:
37
$provider
= parent::getProviderByAuthMode($credentials, $a_authmode);
38
return
$provider
->withoutPasswordVerification();
39
40
default
:
41
throw
new
CronException
(
'The cron CLI script supports local authentication only.'
);
42
}
43
}
44
}
ilAuthProviderCliFactory
Definition:
class.ilAuthProviderCliFactory.php:23
ilAuthCredentials
Definition:
interface.ilAuthCredentials.php:21
CronException
ILIAS\Cron\CronException
Definition:
CronException.php:23
$provider
$provider
Definition:
ltitoken.php:80
ilAuthProviderInterface
Definition:
interface.ilAuthProviderInterface.php:21
ilAuthUtils\AUTH_LOCAL
const int AUTH_LOCAL
Definition:
class.ilAuthUtils.php:27
ilAuthProviderCliFactory\getProviders
getProviders(ilAuthCredentials $credentials)
Definition:
class.ilAuthProviderCliFactory.php:25
ilAuthProviderFactory
ilAuthProviderFactory\getProviderByAuthMode
getProviderByAuthMode(ilAuthCredentials $credentials, $a_authmode)
Definition:
class.ilAuthProviderFactory.php:61
components
ILIAS
Authentication
classes
Provider
class.ilAuthProviderCliFactory.php
Generated on Sun Aug 31 2025 23:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)