24 include_once(
'Auth/Container.php');
87 $ilLog->write(__METHOD__.
': Starting ECS authentication.');
89 if(!$this->settings->isEnabled())
91 $ilLog->write(__METHOD__.
': ECS settings .');
96 include_once(
'./Services/WebServices/ECS/classes/class.ilECSConnector.php');
101 $res = $connector->getAuth(
$_GET[
'ecs_hash']);
102 $auths =
$res->getResult();
103 $this->mid = $auths[0]->mid;
104 $ilLog->write(__METHOD__.
': Got mid: '.$this->mid);
105 $this->abreviation = $auths[0]->abr;
106 $ilLog->write(__METHOD__.
': Got abr: '.$this->abreviation);
117 $ilLog->write(__METHOD__.
': Authentication failed with message: '.$e->getMessage());
130 include_once(
'./Services/WebServices/ECS/classes/class.ilECSSettings.php');