ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
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) | |
retrieveMessagesFromSession () | |
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... | |
confirmAcceptance () | |
confirmWithdrawal () | |
showTermsOfService (bool $accepted=false) | |
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 | |
$dic | |
Private Attributes | |
$help | |
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 57 of file class.ilStartUpGUI.php.
References $DIC, $httpRequest, $mainTemplate, $termsOfServiceEvaluation, $user, ilLoggerFactory\getLogger(), help(), and user().
|
static |
Definition at line 1581 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(), ANONYMOUS_USER_ID, CLIENT_ID, ilUtil\generatePasswords(), ilParticipants\getDefaultMemberRole(), ilPublicSectionSettings\getInstance(), ilObjectFactory\getInstanceByObjId(), ilLoggerFactory\getLogger(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, IL_PASSWD_PLAIN, ilGlobalTemplate\MESSAGE_TYPE_FAILURE, ilGlobalTemplate\MESSAGE_TYPE_SUCCESS, ilUtil\redirect(), ROOT_FOLDER_ID, and ilUtil\setCookie().
|
protected |
Definition at line 1436 of file class.ilStartUpGUI.php.
References showTermsOfService().
|
protected |
Definition at line 1441 of file class.ilStartUpGUI.php.
References $tpl, ANONYMOUS_USER_ID, ilUtil\formCheckbox(), ilSystemSupportContacts\getMailsToAddress(), ilUtil\prepareFormOutput(), and user().
|
protected |
Try apache auth.
Definition at line 653 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 562 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 1347 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $user, AUTH_SAML, CLIENT_ID, ilSession\get(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), ilUtil\setCookie(), and user().
|
protected |
Handle lti requests.
Definition at line 606 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 1250 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 1216 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 1979 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 2026 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 511 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 713 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 103 of file class.ilStartUpGUI.php.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
|
protected |
Get terms of service.
Definition at line 1431 of file class.ilStartUpGUI.php.
References showTermsOfService().
ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 131 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 966 of file class.ilStartUpGUI.php.
References $lng, $ret, $tpl, ilPageUtil\_existsAndNotEmpty(), ilAuthLoginPageEditorSettings\getInstance(), and ilLanguage\lookupId().
Referenced by showLoginPage().
|
protected |
Definition at line 327 of file class.ilStartUpGUI.php.
References $lng.
Referenced by doStandardAuthentication(), processCode(), and showCodeForm().
|
protected |
Initialize the standard.
Definition at line 443 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 151 of file class.ilStartUpGUI.php.
References $GLOBALS, $messages, $type, executeCommand(), retrieveMessagesFromSession(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showLoginPage(), and user().
ilStartUpGUI::jumpToRegistration | ( | ) |
jump to registration gui
Definition at line 140 of file class.ilStartUpGUI.php.
References executeCommand().
|
protected |
Migrate Account.
Definition at line 1181 of file class.ilStartUpGUI.php.
References doMigration(), doMigrationNewAccount(), and showAccountMigration().
|
static |
Definition at line 283 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 361 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, $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 1558 of file class.ilStartUpGUI.php.
References $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, ilPublicSectionSettings\getInstance(), ilInitialisation\goToPublicSection(), showLoginPage(), and user().
|
protected |
Purge page editor html from unused placeholders.
string | $page_editor_html |
Definition at line 1097 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
protected |
Definition at line 291 of file class.ilStartUpGUI.php.
References $messages, ilSession\get(), ilGlobalTemplate\MESSAGE_TYPE_FAILURE, ilGlobalTemplate\MESSAGE_TYPE_INFO, ilGlobalTemplate\MESSAGE_TYPE_QUESTION, and ilGlobalTemplate\MESSAGE_TYPE_SUCCESS.
Referenced by jumpToPasswordAssistance().
ilStartUpGUI::showAccountMigration | ( | string | $message = '' | ) |
Show account migration screen.
string | $message |
Definition at line 1118 of file class.ilStartUpGUI.php.
References $message, $pass, $tpl, $user, ilRadioOption\addSubItem(), help(), 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 839 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $lng, $tpl, ilUtil\getImagePath(), and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Definition at line 309 of file class.ilStartUpGUI.php.
References $lng, $tpl, help(), initCodeForm(), and ilUtil\sendFailure().
Referenced by processCode().
|
protected |
Show login form ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 784 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 815 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
protected |
Show login page
\ilPropertyFormGUI | null | $form |
Definition at line 221 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $tpl, ilObjStyleSheet\getContentStylePath(), getLogger(), getLoginPageEditorHTML(), ilObjStyleSheet\getSyntaxStylePath(), help(), ILIAS\FileDelivery\http(), purgePlaceholders(), ilUtil\sendFailure(), showCASLoginForm(), showLoginForm(), showLoginInformation(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), showShibbolethLoginForm(), showTermsOfServiceLink(), ilUtil\stripSlashes(), and user().
Referenced by doApacheAuthentication(), doCasAuthentication(), doLTIAuthentication(), doOpenIdConnectAuthentication(), doSamlAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), jumpToPasswordAssistance(), processCode(), and processIndexPHP().
|
protected |
Show logout screen.
Definition at line 1309 of file class.ilStartUpGUI.php.
References $_GET, $_SERVER, $client_id, $DIC, $ilIliasIniFile, $lng, $tpl, ilPublicSectionSettings\getInstance(), help(), and user().
ilStartUpGUI::showNoCookiesScreen | ( | ) |
show help screen, if cookies are disabled
to do: link to online help here
Definition at line 1402 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
$page_editor_html |
Definition at line 1936 of file class.ilStartUpGUI.php.
References $_GET, $DIC, $GLOBALS, $lang, $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 1006 of file class.ilStartUpGUI.php.
References $_SERVER, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ANONYMOUS_USER_ID, CLIENT_ID, ilPublicSectionSettings\getInstance(), IL_REG_DISABLED, ROOT_FOLDER_ID, and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
\ilSamlAuth | $auth | |
Definition at line 2172 of file class.ilStartUpGUI.php.
References $DIC, $factory, and help().
Referenced by doSamlAuthentication().
|
protected |
string | $page_editor_html |
Definition at line 1901 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 870 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLoginPage().
|
protected |
Show terms of service.
bool | $accepted |
ilTermsOfServiceMissingDatabaseAdapterException | |
ilTermsOfServiceNoSignableDocumentFoundException | |
ilTermsOfServiceUnexpectedCriteriaBagContentException |
Definition at line 1490 of file class.ilStartUpGUI.php.
References $_GET, $tpl, ANONYMOUS_USER_ID, CLIENT_ID, ilSession\get(), ilSystemSupportContacts\getMailsToAddress(), help(), ilUtil\prepareFormOutput(), ilUtil\redirect(), ilSession\set(), and user().
Referenced by confirmAcceptance(), and getAcceptance().
|
protected |
Show terms of service link.
string | $page_editor_html |
Definition at line 1062 of file class.ilStartUpGUI.php.
References $GLOBALS, ANONYMOUS_USER_ID, 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 948 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 43 of file class.ilStartUpGUI.php.
|
private |
Definition at line 48 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(), 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.