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');
const int AUTH_SHIBBOLETH
const int STATUS_AUTHENTICATED
const int STATUS_AUTHENTICATION_FAILED
const int CONTEXT_STANDARD_FORM
Authentication with id and password.
static redirectToStartingPage(string $target='')
static getInstance()
Get status instance.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const int STATUS_ACCOUNT_MIGRATION_REQUIRED