Check if an authentication attempt should be done when login page has been called.
45 : void
46 {
47 $passedSso = '';
48 if (isset($this->httpRequest->getQueryParams()['passed_sso']) && is_string($this->httpRequest->getQueryParams()['passed_sso'])) {
49 $passedSso = $this->httpRequest->getQueryParams()['passed_sso'];
50 }
51
52 if (!empty($passedSso)) {
53 return;
54 }
55
56 if (!$this->
settings->get(
'soap_auth_active',
'')) {
57 return;
58 }
59
61 return;
62 }
63
64 $this->
logger->debug(
'Using SOAP authentication.');
65
67
69
72 $frontend = $frontend_factory->getFrontend(
73 $this->authSession,
74 $status,
75 $this,
77 );
78 $frontend->authenticate();
79
80 switch ($status->getStatus()) {
83 'Redirecting to default starting page.'
84 );
86 break;
87
89 $this->main_tpl->setOnScreenMessage('failure', $status->getTranslatedReason(), true);
91 $this->
ctrl->getLinkTargetByClass(
'ilStartupGUI',
'showLoginPage',
'',
false,
false),
92 'passed_sso=1'
93 ));
94 break;
95 }
96 }
const int CONTEXT_STANDARD_FORM
Authentication with id and password.
const int STATUS_AUTHENTICATION_FAILED
const int STATUS_AUTHENTICATED
static getInstance()
Get status instance.
static redirectToStartingPage(string $target='')
static getLogger(string $a_component_id)
Get component logger.
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)