ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
StartUp GUI class. More...
Public Member Functions | |
__construct (\ilObjUser $user=null, \ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null, \ilGlobalTemplate $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... | |
showAccountMigration (string $message='') | |
Show account migration screen. More... | |
doLogout () | |
show logout screen More... | |
showClientList () | |
show client list More... | |
showNoCookiesScreen () | |
show help screen, if cookies are disabled More... | |
Static Public Member Functions | |
static | printToGlobalTemplate ($tpl) |
static | _checkGoto ($a_target) |
Data Fields | |
const | ACCOUNT_MIGRATION_MIGRATE = 1 |
const | ACCOUNT_MIGRATION_NEW = 2 |
Protected Member Functions | |
showLoginPage (ilPropertyFormGUI $form=null) | |
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, $tpl) | |
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 () | |
doMigration () | |
showLogout () | |
Show logout screen. 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) | |
Protected Attributes | |
$ctrl | |
$lng | |
$logger | |
$mainTemplate | |
$user | |
$termsOfServiceEvaluation | |
$httpRequest | |
StartUp GUI class.
Handles Login and Registration.
Definition at line 16 of file class.ilStartUpGUI.php.
ilStartUpGUI::__construct | ( | \ilObjUser | $user = null , |
\ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null , |
||
\ilGlobalTemplate | $mainTemplate = null , |
||
ServerRequestInterface | $httpRequest = null |
||
) |
ilStartUpGUI constructor.
\ilObjUser | null | $user | |
Definition at line 49 of file class.ilStartUpGUI.php.
References $DIC, $httpRequest, $mainTemplate, $termsOfServiceEvaluation, $user, ilLoggerFactory\getLogger(), and user().
|
static |
Definition at line 1578 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $_SERVER, $_SESSION, $DIC, $ilSetting, $ilUser, $lng, $location, $param, $password, XapiProxy\$resp, $ret, $tpl, $type, $user, ilObject\_getAllReferences(), ilObjCourse\_isActivated(), ilGroupParticipants\_isParticipant(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjCourse\_registrationEnabled(), ilObjUser\_verifyRegistrationHash(), ilUtil\generatePasswords(), ilParticipants\getDefaultMemberRole(), ilPublicSectionSettings\getInstance(), ilObjectFactory\getInstanceByObjId(), ilLoggerFactory\getLogger(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, IL_PASSWD_PLAIN, ILIAS_HTTP_PATH, ilUtil\redirect(), and ilUtil\setCookie().
|
protected |
Try apache auth.
Definition at line 610 of file class.ilStartUpGUI.php.
References $GLOBALS, ilUtil\appendUrlParameterString(), AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), ilUtil\sendFailure(), and showLoginPage().
|
protected |
Try CAS auth.
Definition at line 519 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, AUTH_CAS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
ilStartUpGUI::doLogout | ( | ) |
show logout screen
Definition at line 1313 of file class.ilStartUpGUI.php.
References $_COOKIE, $client_id, $DIC, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $user, AUTH_SAML, ilSession\get(), ILIAS_HTTP_PATH, ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), ilUtil\setCookie(), and user().
|
protected |
Handle lti requests.
Definition at line 563 of file class.ilStartUpGUI.php.
References $GLOBALS, 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 |
Definition at line 1211 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, AUTH_LOCAL, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), getLogger(), ilAuthFrontend\MIG_TRIGGER_AUTHMODE, ilUtil\sendFailure(), showAccountMigration(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by migrateAccount().
|
protected |
Definition at line 1177 of file class.ilStartUpGUI.php.
References $GLOBALS, 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 1967 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, 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 2014 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $auth, $DIC, $factory, $GLOBALS, 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 468 of file class.ilStartUpGUI.php.
References $GLOBALS, 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 670 of file class.ilStartUpGUI.php.
References $GLOBALS, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), getLogger(), initCodeForm(), initStandardLoginForm(), ilUtil\sendFailure(), 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 91 of file class.ilStartUpGUI.php.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
|
protected |
Get terms of service.
Definition at line 1490 of file class.ilStartUpGUI.php.
References showTermsOfService().
ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 119 of file class.ilStartUpGUI.php.
References $logger.
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doMigration(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), and showLoginPage().
|
protected |
Get HTML of ILIAS login page editor.
Definition at line 923 of file class.ilStartUpGUI.php.
References $lng, $ret, $tpl, ilPageUtil\_existsAndNotEmpty(), ilAuthLoginPageEditorSettings\getInstance(), and ilLanguage\lookupId().
Referenced by showLoginPage().
|
protected |
Definition at line 284 of file class.ilStartUpGUI.php.
Referenced by doStandardAuthentication(), processCode(), and showCodeForm().
|
protected |
Initialize the standard.
Definition at line 400 of file class.ilStartUpGUI.php.
References ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilFormPropertyGUI\setRequired(), and ilPasswordInputGUI\setUseStripSlashes().
Referenced by doStandardAuthentication(), and showLoginForm().
ilStartUpGUI::jumpToPasswordAssistance | ( | ) |
jump to password assistance
Definition at line 139 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 128 of file class.ilStartUpGUI.php.
References executeCommand().
|
protected |
Migrate Account.
Definition at line 1142 of file class.ilStartUpGUI.php.
References doMigration(), doMigrationNewAccount(), and showAccountMigration().
|
static |
Definition at line 260 of file class.ilStartUpGUI.php.
Referenced by ilAccountRegistrationGUI\executeCommand(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), ilPasswordAssistanceGUI\showMessageForm(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
|
protected |
ilLanguage $lng type $ilAuth type $ilCtrl
Definition at line 318 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, $ilCtrl, $lng, $user, ilObjUser\_lookupId(), ilAccountCode\applyAccessLimits(), ilAccountCode\applyRoleAssignments(), ilAccountCode\getCodeValidUntil(), initCodeForm(), ilAccountCode\isUnusedCode(), language(), showCodeForm(), showLoginPage(), and ilAccountCode\useCode().
|
protected |
process index.php
Definition at line 1550 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 1060 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
ilStartUpGUI::showAccountMigration | ( | string | $message = '' | ) |
Show account migration screen.
string | $message |
Definition at line 1081 of file class.ilStartUpGUI.php.
References $message, $pass, $tpl, $user, ilRadioOption\addSubItem(), ilUtil\prepareFormOutput(), ilUtil\sendFailure(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by doMigration(), and migrateAccount().
|
protected |
Show cas login ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 796 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $lng, $tpl, ilUtil\getImagePath(), and substituteLoginPageElements().
Referenced by showLoginPage().
ilStartUpGUI::showClientList | ( | ) |
show client list
Definition at line 1363 of file class.ilStartUpGUI.php.
References $_GET, $client, $data, $ilIliasIniFile, $lng, $tpl, exit, and processIndexPHP().
Referenced by processIndexPHP().
|
protected |
Definition at line 268 of file class.ilStartUpGUI.php.
References $lng, $tpl, initCodeForm(), and ilUtil\sendFailure().
Referenced by processCode().
|
protected |
Show login form ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 741 of file class.ilStartUpGUI.php.
References $ilSetting, $lng, $tpl, AUTH_CAS, AUTH_SHIBBOLETH, initStandardLoginForm(), and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Show login information.
string | $page_editor_html |
Definition at line 772 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
protected |
Show login page
\ilPropertyFormGUI | null | $form |
Definition at line 202 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $tpl, ilObjStyleSheet\getContentStylePath(), getLogger(), getLoginPageEditorHTML(), ilObjStyleSheet\getSyntaxStylePath(), 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(), processCode(), and processIndexPHP().
|
protected |
Show logout screen.
Definition at line 1270 of file class.ilStartUpGUI.php.
References $_GET, $_SERVER, $client_id, $DIC, $ilIliasIniFile, $lng, $tpl, and ilPublicSectionSettings\getInstance().
ilStartUpGUI::showNoCookiesScreen | ( | ) |
show help screen, if cookies are disabled
to do: link to online help here
Definition at line 1461 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
$page_editor_html |
Definition at line 1924 of file class.ilStartUpGUI.php.
References $_GET, $DIC, $GLOBALS, $lang, $tpl, ilOpenIdConnectSettings\getInstance(), ILIAS_HTTP_PATH, 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 963 of file class.ilStartUpGUI.php.
References $_COOKIE, $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ilPublicSectionSettings\getInstance(), IL_REG_DISABLED, and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
\ilSamlAuth | $auth | |
Definition at line 2155 of file class.ilStartUpGUI.php.
References $DIC, and $factory.
Referenced by doSamlAuthentication().
|
protected |
string | $page_editor_html |
Definition at line 1889 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $tpl, ilSamlIdp\getActiveIdpList(), ilSamlSettings\getInstance(), language(), ilUtil\stripSlashes(), and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Show shibboleth login form.
string | $page_editor_html |
Definition at line 827 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Show terms of service.
Definition at line 1498 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $tpl, ilUtil\formCheckbox(), ilSession\get(), ilSystemSupportContacts\getMailsToAddress(), 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 1026 of file class.ilStartUpGUI.php.
References $GLOBALS, ilTermsOfServiceHelper\isEnabled(), substituteLoginPageElements(), and user().
Referenced by 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 905 of file class.ilStartUpGUI.php.
References $tpl.
Referenced by showCASLoginForm(), showLoginForm(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), and showTermsOfServiceLink().
|
protected |
Definition at line 22 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 40 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilStartUpGUI.php.
Referenced by _checkGoto(), doLogout(), getLoginPageEditorHTML(), initCodeForm(), processCode(), showCASLoginForm(), showClientList(), showCodeForm(), showLoginForm(), showLoginInformation(), showLogout(), showRegistrationLinks(), and showShibbolethLoginForm().
|
protected |
Definition at line 28 of file class.ilStartUpGUI.php.
Referenced by getLogger().
|
protected |
Definition at line 31 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilStartUpGUI.php.
Referenced by __construct(), _checkGoto(), doLogout(), processCode(), and showAccountMigration().
const ilStartUpGUI::ACCOUNT_MIGRATION_MIGRATE = 1 |
Definition at line 18 of file class.ilStartUpGUI.php.
const ilStartUpGUI::ACCOUNT_MIGRATION_NEW = 2 |
Definition at line 19 of file class.ilStartUpGUI.php.