ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
StartUp GUI class. More...
Public Member Functions | |
__construct (\ilObjUser $user=null, \ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null, \ilTemplate $mainTemplate=null, ServerRequestInterface $httpRequest=null) | |
ilStartUpGUI constructor. More... | |
executeCommand () | |
execute command More... | |
getLogger () | |
Get logger. More... | |
jumpToRegistration () | |
jump to registration gui More... | |
jumpToPasswordAssistance () | |
jump to password assistance More... | |
showLogout () | |
show logout screen More... | |
showClientList () | |
show client list More... | |
showNoCookiesScreen () | |
show help screen, if cookies are disabled More... | |
Static Public Member Functions | |
static | _checkGoto ($a_target) |
Data Fields | |
const | ACCOUNT_MIGRATION_MIGRATE = 1 |
const | ACCOUNT_MIGRATION_NEW = 2 |
Protected Member Functions | |
showLoginPage (ilPropertyFormGUI $form=null) | |
showLogin () | |
Show login. More... | |
showCodeForm ($a_username=null, $a_form=null) | |
initCodeForm ($a_username) | |
processCode () | |
initStandardLoginForm () | |
Initialize the standard. More... | |
doShibbolethAuthentication () | |
Trying shibboleth authentication. More... | |
doCasAuthentication () | |
Try CAS auth. More... | |
doLTIAuthentication () | |
Handle lti requests. More... | |
doApacheAuthentication () | |
Try apache auth. More... | |
doStandardAuthentication () | |
Check form input; authenticate user. More... | |
showLoginForm ($page_editor_html, ilPropertyFormGUI $form=null) | |
Show login form ilSetting $ilSetting. More... | |
showLoginInformation ($page_editor_html) | |
Show login information. More... | |
showCASLoginForm ($page_editor_html) | |
Show cas login ilSetting $ilSetting. More... | |
showShibbolethLoginForm ($page_editor_html) | |
Show shibboleth login form. More... | |
substituteLoginPageElements ($tpl, $page_editor_html, $element_html, $placeholder, $fallback_tplvar) | |
Substitute login page elements. More... | |
getLoginPageEditorHTML () | |
Get HTML of ILIAS login page editor. More... | |
showRegistrationLinks ($page_editor_html) | |
Show registration, password forgotten, client slection links ilLanguage $lng ilSetting $ilSetting <type> $ilIliasIniFile. More... | |
showTermsOfServiceLink (string $page_editor_html) | |
Show terms of service link. More... | |
purgePlaceholders ($page_editor_html) | |
Purge page editor html from unused placeholders. More... | |
migrateAccount () | |
Migrate Account. More... | |
doMigrationNewAccount () | |
Create new account for migration. More... | |
doMigration () | |
Do migration of existing ILIAS database user account. More... | |
getAcceptance () | |
Get terms of service. More... | |
showTermsOfService () | |
Show terms of service. More... | |
processIndexPHP () | |
process index.php More... | |
showSamlLoginForm ($page_editor_html) | |
showOpenIdConnectLoginForm ($page_editor_html) | |
doOpenIdConnectAuthentication () | |
do open id connect authentication More... | |
doSamlAuthentication () | |
showSamlIdpSelection (\ilSamlAuth $auth, array $idps) | |
Static Protected Member Functions | |
static | getLanguageSelection () |
language selection list More... | |
Protected Attributes | |
$ctrl | |
$lng | |
$logger | |
$mainTemplate | |
$user | |
$termsOfServiceEvaluation | |
$httpRequest | |
StartUp GUI class.
Handles Login and Registration.
Definition at line 15 of file class.ilStartUpGUI.php.
ilStartUpGUI::__construct | ( | \ilObjUser | $user = null , |
\ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null , |
||
\ilTemplate | $mainTemplate = null , |
||
ServerRequestInterface | $httpRequest = null |
||
) |
ilStartUpGUI constructor.
\ilObjUser | null | $user | |
Definition at line 44 of file class.ilStartUpGUI.php.
References $DIC, $httpRequest, $mainTemplate, $termsOfServiceEvaluation, $user, ilLoggerFactory\getLogger(), and user().
|
static |
Definition at line 1788 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $_SERVER, $_SESSION, $ilCtrl, $ilSetting, $ilUser, $lng, $location, $password, $path, $ret, $target, $tpl, $tree, $type, $user, ilObject\_getAllReferences(), ilObjCourse\_isActivated(), ilGroupParticipants\_isParticipant(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjCourse\_registrationEnabled(), ilObjUser\_verifyRegistrationHash(), ilUtil\generatePasswords(), ilParticipants\getDefaultMemberRole(), ilUtil\getImagePath(), ilPublicSectionSettings\getInstance(), ilObjectFactory\getInstanceByObjId(), ilLoggerFactory\getLogger(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, IL_PASSWD_PLAIN, ilUIFramework\init(), iljQueryUtil\initjQuery(), ilUtil\redirect(), and ilUtil\setCookie().
|
protected |
Try apache auth.
Definition at line 829 of file class.ilStartUpGUI.php.
References $GLOBALS, PHPMailer\PHPMailer\$provider, ilUtil\appendUrlParameterString(), AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), and showLoginPage().
|
protected |
Try CAS auth.
Definition at line 738 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, PHPMailer\PHPMailer\$provider, AUTH_CAS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Handle lti requests.
Definition at line 782 of file class.ilStartUpGUI.php.
References $GLOBALS, PHPMailer\PHPMailer\$provider, AUTH_PROVIDER_LTI, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Do migration of existing ILIAS database user account.
Definition at line 1428 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, PHPMailer\PHPMailer\$provider, AUTH_LOCAL, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), getLogger(), ilAuthFrontend\MIG_TRIGGER_AUTHMODE, ilUtil\sendFailure(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by migrateAccount().
|
protected |
Create new account for migration.
Definition at line 1386 of file class.ilStartUpGUI.php.
References $GLOBALS, PHPMailer\PHPMailer\$provider, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), ilAuthFrontend\MIG_EXTERNAL_ACCOUNT, ilAuthFrontend\MIG_TRIGGER_AUTHMODE, and ilUtil\sendFailure().
Referenced by migrateAccount().
|
protected |
do open id connect authentication
Definition at line 2199 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, PHPMailer\PHPMailer\$provider, AUTH_OPENID_CONNECT, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Definition at line 2246 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $auth, $authData, $DIC, $factory, $GLOBALS, $idp, PHPMailer\PHPMailer\$params, PHPMailer\PHPMailer\$provider, $request, AUTH_SAML, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSamlIdp\geIdpIdByEntityId(), ilSamlIdp\getActiveIdpList(), ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), showSamlIdpSelection(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilUtil\stripSlashes().
|
protected |
Trying shibboleth authentication.
Definition at line 687 of file class.ilStartUpGUI.php.
References $GLOBALS, PHPMailer\PHPMailer\$provider, AUTH_SHIBBOLETH, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Check form input; authenticate user.
Definition at line 889 of file class.ilStartUpGUI.php.
References $form, $GLOBALS, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), initStandardLoginForm(), ilUtil\sendFailure(), showCodeForm(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilAuthStatus\STATUS_CODE_ACTIVATION_REQUIRED.
ilStartUpGUI::executeCommand | ( | ) |
execute command
Definition at line 86 of file class.ilStartUpGUI.php.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
|
protected |
Get terms of service.
Definition at line 1699 of file class.ilStartUpGUI.php.
References showTermsOfService().
|
staticprotected |
language selection list
Definition at line 2111 of file class.ilStartUpGUI.php.
References ilMainMenuGUI\getLanguageSelection().
ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 114 of file class.ilStartUpGUI.php.
References $logger.
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doMigration(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), showLogin(), and showLoginPage().
|
protected |
Get HTML of ILIAS login page editor.
Definition at line 1125 of file class.ilStartUpGUI.php.
References $lng, $ret, $tpl, ilPageUtil\_existsAndNotEmpty(), ilObjStyleSheet\getContentStylePath(), ilAuthLoginPageEditorSettings\getInstance(), ilObjStyleSheet\getSyntaxStylePath(), and ilLanguage\lookupId().
Referenced by showLogin(), and showLoginPage().
|
protected |
Definition at line 503 of file class.ilStartUpGUI.php.
References $form, $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by processCode(), and showCodeForm().
|
protected |
Initialize the standard.
Definition at line 619 of file class.ilStartUpGUI.php.
References $form, $key, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilPasswordInputGUI\setUseStripSlashes().
Referenced by doStandardAuthentication(), and showLoginForm().
ilStartUpGUI::jumpToPasswordAssistance | ( | ) |
jump to password assistance
Definition at line 134 of file class.ilStartUpGUI.php.
References $GLOBALS, executeCommand(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showLoginPage(), and user().
ilStartUpGUI::jumpToRegistration | ( | ) |
jump to registration gui
Definition at line 123 of file class.ilStartUpGUI.php.
References executeCommand().
|
protected |
Migrate Account.
Definition at line 1356 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, doMigration(), and doMigrationNewAccount().
|
protected |
ilLanguage $lng type $ilAuth type $ilCtrl
Definition at line 537 of file class.ilStartUpGUI.php.
References $_POST, $code, $form, $GLOBALS, $ilCtrl, $lng, $user, ilObjUser\_lookupId(), ilAccountCode\applyAccessLimits(), ilAccountCode\applyRoleAssignments(), ilAccountCode\getCodeValidUntil(), initCodeForm(), ilAccountCode\isUnusedCode(), showCodeForm(), showLogin(), and ilAccountCode\useCode().
|
protected |
process index.php
Definition at line 1760 of file class.ilStartUpGUI.php.
References $_GET, $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, ilPublicSectionSettings\getInstance(), ilInitialisation\goToPublicSection(), showClientList(), and showLoginPage().
Referenced by showClientList().
|
protected |
Purge page editor html from unused placeholders.
string | $page_editor_html |
Definition at line 1271 of file class.ilStartUpGUI.php.
References $_POST, $form, $lng, $pass, $tpl, $user, ilRadioOption\addSubItem(), ilUtil\prepareFormOutput(), ilUtil\sendFailure(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show cas login ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 1014 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $lng, $tpl, ilUtil\getImagePath(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
ilStartUpGUI::showClientList | ( | ) |
show client list
Definition at line 1568 of file class.ilStartUpGUI.php.
References $_GET, $client, $data, $ilIliasIniFile, $key, $list, $lng, $tbl, $tpl, exit, ilUtil\getStyleSheetLocation(), and processIndexPHP().
Referenced by processIndexPHP().
|
protected |
Definition at line 487 of file class.ilStartUpGUI.php.
References $lng, $tpl, initCodeForm(), and ilUtil\sendFailure().
Referenced by doStandardAuthentication(), processCode(), and showLogin().
|
protected |
Show login.
ilLanguage $lng
Definition at line 263 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $_SERVER, $failure, $ilSetting, $lng, $success, $tpl, AUTH_APACHE_FAILED, AUTH_CAPTCHA_INVALID, AUTH_CAS_NO_ILIAS_USER, AUTH_LDAP_NO_ILIAS_USER, AUTH_MODE_INACTIVE, AUTH_RADIUS_NO_ILIAS_USER, AUTH_SAML_FAILED, AUTH_SOAP_NO_ILIAS_USER, AUTH_USER_INACTIVE, AUTH_USER_SIMULTANEOUS_LOGIN, AUTH_USER_TIME_LIMIT_EXCEEDED, AUTH_USER_WRONG_IP, getLogger(), getLoginPageEditorHTML(), purgePlaceholders(), ilUtil\redirect(), ilUtil\sendFailure(), ilSession\SESSION_CLOSE_CAPTCHA, ilSession\SESSION_CLOSE_INACTIVE, ilSession\SESSION_CLOSE_IP, ilSession\SESSION_CLOSE_SIMUL, ilSession\SESSION_CLOSE_TIME, ilSession\setClosingContext(), ilUtil\setCookie(), showCASLoginForm(), showCodeForm(), showLoginForm(), showLoginInformation(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), showTermsOfServiceLink(), and ilLogLevel\WARNING.
Referenced by processCode().
|
protected |
Show login form ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 959 of file class.ilStartUpGUI.php.
References $form, $ilSetting, $lng, $tpl, AUTH_CAS, AUTH_SHIBBOLETH, initStandardLoginForm(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show login information.
string | $page_editor_html |
Definition at line 990 of file class.ilStartUpGUI.php.
Referenced by showLogin(), and showLoginPage().
|
protected |
Show login page
Definition at line 196 of file class.ilStartUpGUI.php.
References $_GET, $form, $GLOBALS, $ilSetting, $tpl, getLogger(), getLoginPageEditorHTML(), ILIAS\FileDelivery\http(), purgePlaceholders(), ilUtil\sendFailure(), showCASLoginForm(), showLoginForm(), showLoginInformation(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), showTermsOfServiceLink(), and ilUtil\stripSlashes().
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), jumpToPasswordAssistance(), and processIndexPHP().
ilStartUpGUI::showLogout | ( | ) |
show logout screen
Definition at line 1497 of file class.ilStartUpGUI.php.
References $_COOKIE, $_SERVER, $client_id, $DIC, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $tpl, AUTH_SAML, ilSession\get(), ilPublicSectionSettings\getInstance(), ilUtil\redirect(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), ilUtil\setCookie(), and user().
ilStartUpGUI::showNoCookiesScreen | ( | ) |
show help screen, if cookies are disabled
to do: link to online help here
Definition at line 1670 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
$page_editor_html |
Definition at line 2156 of file class.ilStartUpGUI.php.
References $_GET, $DIC, $lang, $target, $tpl, ilOpenIdConnectSettings\getInstance(), ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_IMG, ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_TXT, and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Show registration, password forgotten, client slection links ilLanguage $lng ilSetting $ilSetting <type> $ilIliasIniFile.
string | $page_editor_html |
Definition at line 1174 of file class.ilStartUpGUI.php.
References $_COOKIE, $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ilPublicSectionSettings\getInstance(), IL_REG_DISABLED, and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
\ilSamlAuth | $auth | |
Definition at line 2391 of file class.ilStartUpGUI.php.
References $DIC, $factory, $idp, and $table.
Referenced by doSamlAuthentication().
|
protected |
string | $page_editor_html |
Definition at line 2121 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $tpl, ilSamlIdp\getActiveIdpList(), ilSamlSettings\getInstance(), ilUtil\stripSlashes(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show shibboleth login form.
string | $page_editor_html |
Definition at line 1045 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show terms of service.
Definition at line 1707 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $target, ilUtil\formCheckbox(), ilSession\get(), ilSystemSupportContacts\getMailToAddress(), ilTermsOfServiceHelper\isEnabled(), ilUtil\prepareFormOutput(), ilUtil\redirect(), ilSession\set(), and user().
Referenced by getAcceptance().
|
protected |
Show terms of service link.
string | $page_editor_html |
Definition at line 1237 of file class.ilStartUpGUI.php.
References $GLOBALS, ilTermsOfServiceHelper\isEnabled(), substituteLoginPageElements(), and user().
Referenced by showLogin(), and showLoginPage().
|
protected |
Substitute login page elements.
ilTemplate | $tpl | |
string | $page_editor_html | |
string | $element_html | |
string | $placeholder | |
string | $fallback_tplvar | return string $page_editor_html |
Definition at line 1107 of file class.ilStartUpGUI.php.
References $tpl.
Referenced by showCASLoginForm(), showLoginForm(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), and showTermsOfServiceLink().
|
protected |
Definition at line 21 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 35 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 22 of file class.ilStartUpGUI.php.
Referenced by _checkGoto(), getLoginPageEditorHTML(), initCodeForm(), processCode(), purgePlaceholders(), showCASLoginForm(), showClientList(), showCodeForm(), showLogin(), showLoginForm(), showLoginInformation(), showLogout(), showRegistrationLinks(), and showShibbolethLoginForm().
|
protected |
Definition at line 23 of file class.ilStartUpGUI.php.
Referenced by getLogger().
|
protected |
Definition at line 26 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilStartUpGUI.php.
Referenced by __construct(), _checkGoto(), processCode(), and purgePlaceholders().
const ilStartUpGUI::ACCOUNT_MIGRATION_MIGRATE = 1 |
Definition at line 17 of file class.ilStartUpGUI.php.
const ilStartUpGUI::ACCOUNT_MIGRATION_NEW = 2 |
Definition at line 18 of file class.ilStartUpGUI.php.