19declare(strict_types=1);
21use Psr\Http\Message\ServerRequestInterface;
44 $this->main_tpl =
$DIC->ui()->mainTemplate();
45 $this->authSession =
$DIC[
'ilAuthSession'];
46 $this->
logger = $DIC->logger()->auth();
59 if (isset($this->httpRequest->getQueryParams()[
'cmd']) && is_string($this->httpRequest->getQueryParams()[
'cmd'])) {
60 $cmd = $this->httpRequest->getQueryParams()[
'cmd'];
63 isset($this->httpRequest->getParsedBody()[
'cmd']) && is_string($this->httpRequest->getParsedBody()[
'cmd'])) {
64 $cmd = $this->httpRequest->getParsedBody()[
'cmd'];
68 if (isset($this->httpRequest->getQueryParams()[
'passed_sso']) && is_string($this->httpRequest->getQueryParams()[
'passed_sso'])) {
69 $passedSso = $this->httpRequest->getQueryParams()[
'passed_sso'];
72 if (!empty($passedSso)) {
76 if (!(
bool) $this->
settings->get(
'soap_auth_active',
"")) {
84 $this->
logger->debug(
'Using SOAP authentication.');
92 $frontend = $frontend_factory->getFrontend(
99 $frontend->authenticate();
101 switch ($status->getStatus()) {
104 'Redirecting to default starting page.'
110 $this->main_tpl->setOnScreenMessage(
'failure', $status->getTranslatedReason(),
true);
112 $this->
ctrl->getLinkTargetByClass(
'ilStartupGUI',
'showLoginPage',
'',
false,
false),
ilGlobalTemplateInterface $main_tpl
ilAuthSession $authSession
tryAuthenticationOnLoginPage()
Check if an authentication attempt should be done when login page has been called.
ServerRequestInterface $httpRequest
__construct(ServerRequestInterface $httpRequest, ilCtrl $ctrl, ilSetting $settings)
ilAuthFrontendCredentialsApache constructor.
getPassword()
Get password.
getUsername()
Get username.
Factory for auth frontend classes.
const CONTEXT_STANDARD_FORM
Class ilAuthProviderSoap.
const STATUS_AUTHENTICATED
static getInstance()
Get status instance.
const STATUS_AUTHENTICATION_FAILED
Class ilCtrl provides processing control methods.
static redirectToStartingPage(string $target='')
static getLogger(string $a_component_id)
Get component logger.
Component logger with individual log levels by component id.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc