19 declare(strict_types=1);
34 $this->main_tpl = $DIC->ui()->mainTemplate();
35 $this->authSession = $DIC[
'ilAuthSession'];
48 if (isset($this->httpRequest->getQueryParams()[
'passed_sso']) && is_string($this->httpRequest->getQueryParams()[
'passed_sso'])) {
49 $passedSso = $this->httpRequest->getQueryParams()[
'passed_sso'];
52 if (!empty($passedSso)) {
56 if (!$this->
settings->get(
'soap_auth_active',
'')) {
64 $this->
logger->debug(
'Using SOAP authentication.');
72 $frontend = $frontend_factory->getFrontend(
78 $frontend->authenticate();
80 switch ($status->getStatus()) {
83 'Redirecting to default starting page.' 89 $this->main_tpl->setOnScreenMessage(
'failure', $status->getTranslatedReason(),
true);
91 $this->
ctrl->getLinkTargetByClass(
'ilStartupGUI',
'showLoginPage',
'',
false,
false),
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
static getLogger(string $a_component_id)
Get component logger.
tryAuthenticationOnLoginPage()
Check if an authentication attempt should be done when login page has been called.
__construct(ServerRequestInterface $httpRequest, ilCtrlInterface $ctrl, ilSetting $settings)
const int STATUS_AUTHENTICATED
ServerRequestInterface $httpRequest
ilGlobalTemplateInterface $main_tpl
const int STATUS_AUTHENTICATION_FAILED
ilAuthSession $authSession
const int CONTEXT_STANDARD_FORM
Authentication with id and password.
static redirectToStartingPage(string $target='')
static getInstance()
Get status instance.
__construct(Container $dic, ilPlugin $plugin)