ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
StartUp GUI class. More...
Public Member Functions | |
__construct () | |
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... | |
showUserMappingSelection () | |
Show user selection screen, if external account could not be mapped to an ILIAS account, but the provided e-mail address is known. 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... | |
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... | |
processIndexPHP () | |
process index.php More... | |
showSamlLoginForm ($page_editor_html) | |
doSamlAuthentication () | |
showSamlIdpSelection (\ilSamlAuth $auth, array $idps) | |
Static Protected Member Functions | |
static | getLanguageSelection () |
language selection list More... | |
Protected Attributes | |
$ctrl | |
$lng | |
$logger | |
StartUp GUI class.
Handles Login and Registration.
Definition at line 15 of file class.ilStartUpGUI.php.
ilStartUpGUI::__construct | ( | ) |
constructor
Definition at line 28 of file class.ilStartUpGUI.php.
References $ilCtrl, $lng, array, and ilLoggerFactory\getLogger().
|
static |
Definition at line 1777 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $_SERVER, $_SESSION, $ilCtrl, $ilSetting, $ilUser, $lng, $location, $password, $path, $ret, $target, $tpl, $type, ilObject\_getAllReferences(), ilObjCourse\_isActivated(), ilGroupParticipants\_isParticipant(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjCourse\_registrationEnabled(), ilObjUser\_verifyRegistrationHash(), array, 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(), ilUtil\setCookie(), and time.
|
protected |
Try apache auth.
Definition at line 770 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, ilUtil\appendUrlParameterString(), array, AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\getLogger(), ilUtil\redirect(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Try CAS auth.
Definition at line 679 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, League\OAuth2\Client\Provider\$provider, array, 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 723 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, array, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\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 1373 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, League\OAuth2\Client\Provider\$provider, array, 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 1331 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, array, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), ilAuthFrontend\MIG_EXTERNAL_ACCOUNT, ilAuthFrontend\MIG_TRIGGER_AUTHMODE, and ilUtil\sendFailure().
Referenced by migrateAccount().
|
protected |
Definition at line 2138 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $auth, $DIC, $factory, $GLOBALS, $idp, $params, League\OAuth2\Client\Provider\$provider, array, AUTH_SAML, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSamlIdp\getActiveIdpList(), ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\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 628 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, array, AUTH_SHIBBOLETH, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\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 830 of file class.ilStartUpGUI.php.
References $form, $GLOBALS, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\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 44 of file class.ilStartUpGUI.php.
References array.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
|
protected |
Get terms of service.
Definition at line 1690 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $ilSetting, $ilUser, $lng, $target, $tpl, ilUtil\formCheckbox(), ilSession\get(), ilTermsOfServiceSignableDocumentFactory\getByLanguageObject(), ilSystemSupportContacts\getMailToAddress(), ilUtil\prepareFormOutput(), ilUtil\redirect(), ilSession\set(), and ilTermsOfServiceHelper\trackAcceptance().
|
staticprotected |
language selection list
Definition at line 2094 of file class.ilStartUpGUI.php.
References ilMainMenuGUI\getLanguageSelection().
ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 70 of file class.ilStartUpGUI.php.
References $logger.
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doMigration(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), showLogin(), and showLoginPage().
|
protected |
Get HTML of ILIAS login page editor.
Definition at line 1066 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 444 of file class.ilStartUpGUI.php.
References $form, $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by processCode(), and showCodeForm().
|
protected |
Initialize the standard.
Definition at line 560 of file class.ilStartUpGUI.php.
References $form, $key, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_hasMultipleAuthenticationMethods(), array, ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilPasswordInputGUI\setUseStripSlashes().
Referenced by doStandardAuthentication(), and showLoginForm().
ilStartUpGUI::jumpToPasswordAssistance | ( | ) |
jump to password assistance
Definition at line 90 of file class.ilStartUpGUI.php.
References $GLOBALS, array, executeCommand(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showLoginPage(), and user().
ilStartUpGUI::jumpToRegistration | ( | ) |
jump to registration gui
Definition at line 79 of file class.ilStartUpGUI.php.
References executeCommand().
|
protected |
Migrate Account.
Definition at line 1301 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, doMigration(), and doMigrationNewAccount().
|
protected |
ilLanguage $lng type $ilAuth type $ilCtrl
Definition at line 478 of file class.ilStartUpGUI.php.
References $_POST, $code, $form, $GLOBALS, $ilCtrl, $lng, ilObjUser\_lookupId(), ilAccountCode\applyAccessLimits(), ilAccountCode\applyRoleAssignments(), ilAccountCode\getCodeValidUntil(), initCodeForm(), ilAccountCode\isUnusedCode(), ilUtil\sendSuccess(), showCodeForm(), showLogin(), time, and ilAccountCode\useCode().
|
protected |
process index.php
Definition at line 1749 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 1216 of file class.ilStartUpGUI.php.
References $_POST, $form, $lng, $new, $pass, $tpl, ilRadioOption\addSubItem(), array, 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 955 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 1559 of file class.ilStartUpGUI.php.
References $_GET, $client, $data, $ilIliasIniFile, $key, $list, $lng, $tbl, $tpl, array, exit, ilUtil\getStyleSheetLocation(), header, and processIndexPHP().
Referenced by processIndexPHP().
|
protected |
Definition at line 428 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 203 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(), ilUtil\sendSuccess(), 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(), and ilLogLevel\WARNING.
Referenced by processCode().
|
protected |
Show login form ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 900 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 931 of file class.ilStartUpGUI.php.
Referenced by showLogin(), and showLoginPage().
|
protected |
Show login page
Definition at line 150 of file class.ilStartUpGUI.php.
References $form, $GLOBALS, $ilSetting, $tpl, getLogger(), getLoginPageEditorHTML(), purgePlaceholders(), ilUtil\sendFailure(), showCASLoginForm(), showLoginForm(), showLoginInformation(), showRegistrationLinks(), showSamlLoginForm(), and showShibbolethLoginForm().
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), jumpToPasswordAssistance(), and processIndexPHP().
ilStartUpGUI::showLogout | ( | ) |
show logout screen
Definition at line 1442 of file class.ilStartUpGUI.php.
References $_COOKIE, $_SERVER, $client_id, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $tpl, array, 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 1661 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
Show registration, password forgotten, client slection links ilLanguage $lng ilSetting $ilSetting <type> $ilIliasIniFile.
string | $page_editor_html |
Definition at line 1115 of file class.ilStartUpGUI.php.
References $_COOKIE, $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ilTermsOfServiceSignableDocumentFactory\getByLanguageObject(), ilPublicSectionSettings\getInstance(), IL_REG_DISABLED, ilTermsOfServiceHelper\isEnabled(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
\ilSamlAuth | $auth | |
Definition at line 2235 of file class.ilStartUpGUI.php.
References $DIC, $factory, $idp, $table, and array.
Referenced by doSamlAuthentication().
|
protected |
string | $page_editor_html |
Definition at line 2104 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 986 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
ilStartUpGUI::showUserMappingSelection | ( | ) |
Show user selection screen, if external account could not be mapped to an ILIAS account, but the provided e-mail address is known.
Definition at line 1499 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $key, $lng, $tpl, $valid, ilObjUser\_getLocalAccountsForEmail(), ilUtil\prepareFormOutput(), and ilUtil\sendFailure().
|
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 1048 of file class.ilStartUpGUI.php.
References $tpl.
Referenced by showCASLoginForm(), showLoginForm(), showRegistrationLinks(), showSamlLoginForm(), and showShibbolethLoginForm().
|
protected |
Definition at line 21 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 22 of file class.ilStartUpGUI.php.
Referenced by __construct(), _checkGoto(), getAcceptance(), getLoginPageEditorHTML(), initCodeForm(), processCode(), purgePlaceholders(), showCASLoginForm(), showClientList(), showCodeForm(), showLogin(), showLoginForm(), showLoginInformation(), showLogout(), showRegistrationLinks(), showShibbolethLoginForm(), and showUserMappingSelection().
|
protected |
Definition at line 23 of file class.ilStartUpGUI.php.
Referenced by getLogger().
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.