ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAuthProviderCliFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 public function getProviders(ilAuthCredentials $credentials): array
26 {
27 return [
29 ];
30 }
31
32 public function getProviderByAuthMode(ilAuthCredentials $credentials, $a_authmode): ?ilAuthProviderInterface
33 {
34 switch ((int) $a_authmode) {
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}
getProviders(ilAuthCredentials $credentials)
getProviderByAuthMode(ilAuthCredentials $credentials, $a_authmode)
const int AUTH_LOCAL
$provider
Definition: ltitoken.php:80