51 $this->
logger->debug(
'Trying shibboleth authentication');
54 $credentials->initFromRequest();
63 $frontend = $frontend_factory->getFrontend(
69 $frontend->authenticate();
71 switch ($status->getStatus()) {
73 $this->
logger->debug(
'Authentication successful; Redirecting to starting page.');
78 $this->
ctrl->redirect($this,
'showAccountMigration');
82 $this->
template->setOnScreenMessage(
'failure', $status->getTranslatedReason(),
true);
83 $this->
ctrl->redirect($this,
'showLoginPage');
86 $this->
template->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_wrong_login'),
true);
87 $this->
ctrl->setTargetScript(
'ilias.php');
88 $this->
ctrl->redirectByClass(ilStartUpGUI::class,
'showLoginPage');
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const int CONTEXT_STANDARD_FORM
Authentication with id and password.
const int STATUS_AUTHENTICATION_FAILED
const int STATUS_ACCOUNT_MIGRATION_REQUIRED
const int STATUS_AUTHENTICATED
static getInstance()
Get status instance.
const int AUTH_SHIBBOLETH
Base class for ILIAS Exception handling.
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration fil...
static redirectToStartingPage(string $target='')
Component logger with individual log levels by component id.
@ilCtrl_Calls ilStartUpGUI: ilAccountRegistrationGUI, ilPasswordAssistanceGUI, ilLoginPageGUI,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...