ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilAuthProviderCliFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function getProviders(ilAuthCredentials $credentials): array
24  {
25  return [
27  ];
28  }
29 
30  public function getProviderByAuthMode(ilAuthCredentials $credentials, $a_authmode): ?ilAuthProviderInterface
31  {
32  switch ((int) $a_authmode) {
35  $provider = parent::getProviderByAuthMode($credentials, $a_authmode);
36  return $provider->withoutPasswordVerification();
37 
38  default:
39  throw new ilCronException("The cron CLI script supports local authentication only.");
40  }
41  }
42 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$provider
Definition: ltitoken.php:83
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getProviders(ilAuthCredentials $credentials)
getProviderByAuthMode(ilAuthCredentials $credentials, $a_authmode)