ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
@ilCtrl_Calls ilStartUpGUI: ilAccountRegistrationGUI, ilPasswordAssistanceGUI, ilLoginPageGUI, ilDashboardGUI @ilCtrl_Calls ilStartUpGUI: ilMembershipOverviewGUI, ilDerivedTasksGUI, ilAccessibilityControlConceptGUI @ilCtrl_Calls ilStartUpGUI: ilLogoutPageGUI More...
Public Member Functions | |
__construct (?ilObjUser $user=null, ?ilGlobalTemplateInterface $mainTemplate=null, ?ServerRequestInterface $httpRequest=null) | |
getUnsafeGetCommands () | |
This method must return a list of unsafe GET commands. More... | |
getSafePostCommands () | |
This method must return a list of safe POST commands. More... | |
executeCommand () | |
getUnsafeGetCommands () | |
This method must return a list of unsafe GET commands. More... | |
getSafePostCommands () | |
This method must return a list of safe POST commands. More... | |
Static Public Member Functions | |
static | setForcedCommand (string $cmd) |
static | printToGlobalTemplate ($tpl) |
static | initStartUpTemplate ( $a_tmpl, bool $a_show_back=false, bool $a_show_logout=false) |
This method enriches the global template with some user interface elements (language selection, headlines, back buttons, ...) for public service views. More... | |
static | logoutUrl (array $parameters=[]) |
Return the logout URL with a valid CSRF token. More... | |
Protected Member Functions | |
showLegalDocuments () | |
Private Attributes | |
const | PROP_USERNAME = 'username' |
const | PROP_PASSWORD = 'password' |
const | PROP_AUTH_MODE = 'auth_mode' |
const | PROP_CODE = 'code' |
const | PROP_ACCOUNT_MIGRATION = 'account_migration' |
const | PROP_ACCOUNT_MIGRATION_NEW = 'account_migration_new' |
const | PROP_ACCOUNT_MIGRATION_MIGRATE = 'account_migration_migrate' |
ilCtrlInterface | $ctrl |
ilLanguage | $lng |
ilLogger | $logger |
ilGlobalTemplateInterface | $mainTemplate |
ilObjUser | $user |
ServerRequestInterface | $httpRequest |
ILIAS DI Container | $dic |
ilAuthSession | $authSession |
ilAppEventHandler | $eventHandler |
ilSetting | $setting |
ilAccessHandler | $access |
ilDBInterface | $db |
RefineryFactory | $refinery |
HTTPServices | $http |
ilHelpGUI | $help |
ILIAS UI Factory | $ui_factory |
ILIAS UI Renderer | $ui_renderer |
Static Private Attributes | |
static string | $forced_cmd = '' |
@ilCtrl_Calls ilStartUpGUI: ilAccountRegistrationGUI, ilPasswordAssistanceGUI, ilLoginPageGUI, ilDashboardGUI @ilCtrl_Calls ilStartUpGUI: ilMembershipOverviewGUI, ilDerivedTasksGUI, ilAccessibilityControlConceptGUI @ilCtrl_Calls ilStartUpGUI: ilLogoutPageGUI
Definition at line 37 of file class.ilStartUpGUI.php.
ilStartUpGUI::__construct | ( | ?ilObjUser | $user = null , |
?ilGlobalTemplateInterface | $mainTemplate = null , |
||
?ServerRequestInterface | $httpRequest = null |
||
) |
Definition at line 68 of file class.ilStartUpGUI.php.
References $DIC, $httpRequest, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
private |
Definition at line 1042 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\User\Settings\Password.
|
private |
Definition at line 403 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
private |
Definition at line 522 of file class.ilStartUpGUI.php.
References $lng, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\User\Settings\Password, ILIAS\Repository\refinery(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
|
private |
Definition at line 105 of file class.ilStartUpGUI.php.
References $forced_cmd.
Referenced by executeCommand().
|
private |
Definition at line 659 of file class.ilStartUpGUI.php.
References $provider, ilUtil\appendUrlParameterString(), ilAuthUtils\AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilAuthStatus\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
private |
Definition at line 601 of file class.ilStartUpGUI.php.
References $provider, $ref_id, ilObject\_lookupType(), ilAuthUtils\AUTH_PROVIDER_LTI, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilSession\get(), ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), IL_COOKIE_PATH, ILIAS\Repository\lng(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ilSession\set(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
private |
array<string,string> | $migration_request_data |
Definition at line 1174 of file class.ilStartUpGUI.php.
References $GLOBALS, $provider, ilAuthUtils\AUTH_LOCAL, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilSession\get(), ilAuthStatus\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ilAuthFrontend\MIG_TRIGGER_AUTHMODE, ilInitialisation\redirectToStartingPage(), and ilAuthStatus\STATUS_AUTHENTICATED.
|
private |
Definition at line 1139 of file class.ilStartUpGUI.php.
References $GLOBALS, $provider, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilSession\get(), ilAuthStatus\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ilAuthFrontend\MIG_EXTERNAL_ACCOUNT, ilAuthFrontend\MIG_TRIGGER_AUTHMODE, and ilInitialisation\redirectToStartingPage().
|
private |
Definition at line 1720 of file class.ilStartUpGUI.php.
References $provider, ilAuthUtils\AUTH_OPENID_CONNECT, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilAuthStatus\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
private |
Definition at line 1760 of file class.ilStartUpGUI.php.
References $params, $provider, ilAuthUtils\AUTH_SAML, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilSamlIdp\geIdpIdByEntityId(), ilSamlIdp\getActiveIdpList(), ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilUtil\stripSlashes().
|
private |
Definition at line 716 of file class.ilStartUpGUI.php.
References $duration, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ILIAS\Repository\ctrl(), ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), ILIAS\FileDelivery\http(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilAuthStatus\STATUS_CODE_ACTIVATION_REQUIRED.
ilStartUpGUI::executeCommand | ( | ) |
Definition at line 157 of file class.ilStartUpGUI.php.
References checkForcedCommand(), ILIAS\Repository\ctrl(), and showLoginPageOrStartupPage().
|
private |
Definition at line 917 of file class.ilStartUpGUI.php.
References ilPageUtil\_existsAndNotEmpty(), ilObjAuthSettings\getAuthSettingsRefId(), ilAuthPageEditorSettings\getInstance(), ILIAS\Repository\lng(), ilLanguage\lookupId(), and mainTemplate().
Referenced by showLoginPage().
|
private |
Definition at line 192 of file class.ilStartUpGUI.php.
References $logger.
Referenced by showLoginPage().
ilStartUpGUI::getSafePostCommands | ( | ) |
This method must return a list of safe POST commands.
Safe post commands returned by this method will no longer be CSRF protected and will NOT be appended by an ilCtrlToken.
Implements ilCtrlSecurityInterface.
Definition at line 149 of file class.ilStartUpGUI.php.
ilStartUpGUI::getUnsafeGetCommands | ( | ) |
This method must return a list of unsafe GET commands.
Unsafe get commands returned by this method will now be CSRF protected, which means an ilCtrlToken is appended each time a link-target is generated to the class implementing this interface with a command from that list.
Tokens will be validated in
Implements ilCtrlSecurityInterface.
Definition at line 142 of file class.ilStartUpGUI.php.
|
static |
This method enriches the global template with some user interface elements (language selection, headlines, back buttons, ...) for public service views.
string|array{0 | string, 1: string} $a_tmpl The template file as a string of as an array (index 0: template file, index 1: template directory) |
Definition at line 1598 of file class.ilStartUpGUI.php.
Referenced by ilAccountRegistrationGUI\displayForm(), ilAccountRegistrationGUI\login(), ilPasswordAssistanceGUI\showAssistanceForm(), showLoginPage(), ilPasswordAssistanceGUI\showMessageForm(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
|
private |
Definition at line 134 of file class.ilStartUpGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
|
private |
Definition at line 202 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl().
|
private |
Definition at line 197 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl().
|
static |
Return the logout URL with a valid CSRF token.
Without the token the logout won't be successful.
array<string,string> | $parameters |
Definition at line 1952 of file class.ilStartUpGUI.php.
Referenced by ILIAS\LegalDocuments\Conductor\__construct(), ILIAS\LegalDocuments\Provide\ProvideWithdrawal\__construct(), ilTestPlayerAbstractGUI\afterTestPassFinishedCmd(), ILIAS\User\Presentation\UserMetaBarProvider\getMetaBarItems(), ilAuthProviderOpenIdConnect\handleLogout(), and ILIAS\LegalDocuments\ConsumerToolbox\Blocks\routing().
|
private |
Definition at line 115 of file class.ilStartUpGUI.php.
References ILIAS\Repository\refinery().
|
private |
Definition at line 1109 of file class.ilStartUpGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\lng().
|
static |
ilTemplate | ilGlobalTemplateInterface | $tpl |
Definition at line 360 of file class.ilStartUpGUI.php.
References $DIC.
Referenced by ilAccountRegistrationGUI\executeCommand(), ilPasswordAssistanceGUI\showAssistanceForm(), showLoginPage(), ilPasswordAssistanceGUI\showMessageForm(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
|
private |
Definition at line 443 of file class.ilStartUpGUI.php.
References $GLOBALS, $user_id, ilObjUser\_lookupId(), ilRegistrationCode\applyAccessLimits(), ilRegistrationCode\applyRoleAssignments(), ILIAS\Repository\ctrl(), ilRegistrationCode\getCodeValidUntil(), ILIAS\FileDelivery\http(), ilRegistrationCode\isUnusedCode(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\lng(), mainTemplate(), ilObjUser\setActive(), ilObjUser\setTimeLimitUnlimited(), ilObjUser\setTimeLimitUntil(), ilObjUser\update(), and ilRegistrationCode\useCode().
|
private |
Definition at line 1327 of file class.ilStartUpGUI.php.
References $_SERVER, ILIAS\Repository\access(), ANONYMOUS_USER_ID, ilPublicSectionSettings\getInstance(), ilInitialisation\goToPublicSection(), ilInitialisation\redirectToStartingPage(), ROOT_FOLDER_ID, and ILIAS\Repository\user().
|
private |
Definition at line 1024 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
private |
Definition at line 371 of file class.ilStartUpGUI.php.
References $messages, ilSession\get(), ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_INFO, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_QUESTION, and ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_SUCCESS.
Referenced by showLoginPageOrStartupPage().
|
private |
Definition at line 122 of file class.ilStartUpGUI.php.
References ILIAS\Repository\refinery(), and ilArrayUtil\stripSlashesRecursive().
|
static |
Definition at line 100 of file class.ilStartUpGUI.php.
|
private |
Definition at line 1093 of file class.ilStartUpGUI.php.
|
private |
Definition at line 390 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 1319 of file class.ilStartUpGUI.php.
References $DIC.
|
private |
Definition at line 997 of file class.ilStartUpGUI.php.
References $DIC, ANONYMOUS_USER_ID, and ILIAS\Repository\user().
Referenced by showLoginPage().
|
private |
Definition at line 792 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
private |
Definition at line 807 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
|
private |
Definition at line 280 of file class.ilStartUpGUI.php.
References $GLOBALS, ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), getAuthPageEditorHtml(), ilObjStyleSheet\getContentStylePath(), getLogger(), ilObjStyleSheet\getSyntaxStylePath(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), initStartUpTemplate(), ILIAS\Repository\lng(), mainTemplate(), ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_FAILURE, ILIAS\UICore\GlobalTemplate\MESSAGE_TYPE_SUCCESS, printToGlobalTemplate(), purgePlaceholders(), ILIAS\Repository\refinery(), showLegalDocumentsLinks(), showLoginForm(), showLoginInformation(), showOpenIdConnectLoginForm(), showRegistrationLinks(), showSamlLoginForm(), and showShibbolethLoginForm().
Referenced by showLoginPageOrStartupPage().
|
private |
According to a (core) code base analysis (ILIAS 8.x until 10.x, 2024-11-05), there is curently no code that redirects to this command/action with "cmd=force_login" as query parameter in a case where the user is still considered as "logged-in". To address https://mantis.ilias.de/view.php?id=29991 we assume that we can ignore such requests to prevent "Logout without CSRF / Denial of Service for Users" and redirect the user to the start page instead.
Definition at line 208 of file class.ilStartUpGUI.php.
References $messages, ILIAS\FileDelivery\http(), ILIAS\Repository\logger(), mainTemplate(), ilInitialisation\redirectToStartingPage(), ILIAS\Repository\refinery(), retrieveMessagesFromSession(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showLoginPage(), and ILIAS\Repository\user().
Referenced by executeCommand().
|
private |
Definition at line 1230 of file class.ilStartUpGUI.php.
References $_SERVER, $client_id, ilObjUser\_isAnonymous(), ILIAS\Repository\access(), ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), ilPublicSectionSettings\getInstance(), ilUserUtil\getStartingPointAsUrl(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ROOT_FOLDER_ID.
|
private |
Definition at line 1685 of file class.ilStartUpGUI.php.
References $GLOBALS, ilOpenIdConnectSettings\getInstance(), ILIAS\Repository\lng(), ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_IMG, and ilOpenIdConnectSettings\LOGIN_ELEMENT_TYPE_TXT.
Referenced by showLoginPage().
|
private |
Definition at line 944 of file class.ilStartUpGUI.php.
References $_SERVER, ilRegistrationSettings\_lookupRegistrationType(), ILIAS\Repository\access(), ANONYMOUS_USER_ID, CLIENT_ID, ILIAS\Repository\ctrl(), ilPublicSectionSettings\getInstance(), ilRegistrationSettings\IL_REG_DISABLED, ILIAS\Repository\lng(), and ROOT_FOLDER_ID.
Referenced by showLoginPage().
|
private |
list<ilSamlIdp> | $idps |
Definition at line 1910 of file class.ilStartUpGUI.php.
References $components, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and mainTemplate().
|
private |
Definition at line 1656 of file class.ilStartUpGUI.php.
References $GLOBALS, ilSamlIdp\getActiveIdpList(), ilSamlSettings\getInstance(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().
Referenced by showLoginPage().
|
private |
Definition at line 816 of file class.ilStartUpGUI.php.
References $GLOBALS, and ILIAS\Repository\lng().
Referenced by showLoginPage().
|
private |
ilTemplate | ilGlobalTemplateInterface | $tpl |
Definition at line 897 of file class.ilStartUpGUI.php.
|
private |
Definition at line 59 of file class.ilStartUpGUI.php.
|
private |
Definition at line 56 of file class.ilStartUpGUI.php.
|
private |
Definition at line 49 of file class.ilStartUpGUI.php.
|
private |
Definition at line 60 of file class.ilStartUpGUI.php.
|
private |
Definition at line 55 of file class.ilStartUpGUI.php.
|
private |
Definition at line 57 of file class.ilStartUpGUI.php.
|
staticprivate |
Definition at line 47 of file class.ilStartUpGUI.php.
Referenced by checkForcedCommand().
|
private |
Definition at line 64 of file class.ilStartUpGUI.php.
|
private |
Definition at line 63 of file class.ilStartUpGUI.php.
|
private |
Definition at line 54 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
private |
Definition at line 50 of file class.ilStartUpGUI.php.
|
private |
Definition at line 51 of file class.ilStartUpGUI.php.
Referenced by getLogger().
|
private |
Definition at line 52 of file class.ilStartUpGUI.php.
|
private |
Definition at line 62 of file class.ilStartUpGUI.php.
|
private |
Definition at line 58 of file class.ilStartUpGUI.php.
|
private |
Definition at line 65 of file class.ilStartUpGUI.php.
|
private |
Definition at line 66 of file class.ilStartUpGUI.php.
|
private |
Definition at line 53 of file class.ilStartUpGUI.php.
|
private |
Definition at line 43 of file class.ilStartUpGUI.php.
|
private |
Definition at line 45 of file class.ilStartUpGUI.php.
|
private |
Definition at line 44 of file class.ilStartUpGUI.php.
|
private |
Definition at line 41 of file class.ilStartUpGUI.php.
|
private |
Definition at line 42 of file class.ilStartUpGUI.php.
|
private |
Definition at line 40 of file class.ilStartUpGUI.php.
|
private |
Definition at line 39 of file class.ilStartUpGUI.php.