20 public function __construct($a_client_id, $a_login, $a_password)
22 $this->client = $a_client_id;
23 $this->username = $a_login;
24 $this->password = $a_password;
32 include_once
'./Services/Context/classes/class.ilContext.php';
39 include_once
'./include/inc.header.php';
52 include_once
'./Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
54 $credentials->setUsername($this->username);
55 $credentials->setPassword($this->password);
57 include_once
'./Services/Authentication/classes/Provider/class.ilAuthProviderFactory.php';
59 $providers = $provider_factory->getProviders($credentials);
61 include_once
'./Services/Authentication/classes/class.ilAuthStatus.php';
64 include_once
'./Services/Authentication/classes/Frontend/class.ilAuthFrontendFactory.php';
67 $frontend = $frontend_factory->getFrontend(
74 $frontend->authenticate();
76 switch ($status->getStatus()) {
84 include_once
'./Services/Cron/exceptions/class.ilCronException.php';
96 if (isset(
$GLOBALS[
'DIC'][
'ilAuthSession'])) {
97 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
const STATUS_AUTHENTICATION_FAILED
Factory for auth frontend classes.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
__construct($a_client_id, $a_login, $a_password)
Constructor.
logout()
Closes the current auth session.
static init($a_type)
Init context by type.
const STATUS_AUTHENTICATED
static setClosingContext($a_context)
set closing context (for statistics)
static getInstance()
Get status instance.
static getLogger($a_component_id)
Get component logger.
Description of class class.
Handles cron (cli) request.
authenticate()
Start authentication.