|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
@ilCtrl_Calls ilStartUpGUI: ilAccountRegistrationGUI, ilPasswordAssistanceGUI, ilLoginPageGUI, ilDashboardGUI @ilCtrl_Calls ilStartUpGUI: ilMembershipOverviewGUI, ilDerivedTasksGUI, ilAccessibilityControlConceptGUI @ilCtrl_Calls ilStartUpGUI: ilLogoutPageGUI More...
Inheritance diagram for ilStartUpGUI:
Collaboration diagram for ilStartUpGUI: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 41 of file class.ilStartUpGUI.php.
| ilStartUpGUI::__construct | ( | ?ilObjUser | $user = null, |
| ?ilGlobalTemplateInterface | $mainTemplate = null, |
||
| ?ServerRequestInterface | $httpRequest = null |
||
| ) |
Definition at line 72 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().
Here is the call graph for this function:
|
private |
Definition at line 1046 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\User\Settings\Password.
Here is the call graph for this function:
|
private |
Definition at line 407 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 526 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().
Here is the call graph for this function:
|
private |
Definition at line 109 of file class.ilStartUpGUI.php.
References $forced_cmd.
Referenced by executeCommand().
Here is the caller graph for this function:
|
private |
Definition at line 1511 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl(), ilObjUser\getLanguage(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), mainTemplate(), ILIAS\Repository\refinery(), and ilUtil\setCookie().
Here is the call graph for this function:
|
private |
Definition at line 663 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.
Here is the call graph for this function:
|
private |
Definition at line 605 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.
Here is the call graph for this function:
|
private |
| array<string,string> | $migration_request_data |
Definition at line 1178 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.
Here is the call graph for this function:
|
private |
Definition at line 1143 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().
Here is the call graph for this function:
|
private |
Definition at line 1682 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.
Here is the call graph for this function:
|
private |
Definition at line 1722 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().
Here is the call graph for this function:
|
private |
Definition at line 720 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.
Here is the call graph for this function:| ilStartUpGUI::executeCommand | ( | ) |
Definition at line 161 of file class.ilStartUpGUI.php.
References checkForcedCommand(), ILIAS\Repository\ctrl(), and showLoginPageOrStartupPage().
Here is the call graph for this function:
|
private |
Definition at line 921 of file class.ilStartUpGUI.php.
References ilPageUtil\_existsAndNotEmpty(), ilObjAuthSettings\getAuthSettingsRefId(), ilAuthPageEditorSettings\getInstance(), ILIAS\Repository\lng(), ilLanguage\lookupId(), and mainTemplate().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 196 of file class.ilStartUpGUI.php.
References $logger.
Referenced by showLoginPage().
Here is the caller graph for this function:| 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 153 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 146 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 1560 of file class.ilStartUpGUI.php.
Referenced by ilAccountRegistrationGUI\displayForm(), ilAccountRegistrationGUI\login(), ilPasswordAssistanceGUI\showAssistanceForm(), showLoginPage(), ilPasswordAssistanceGUI\showMessageForm(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
Here is the caller graph for this function:
|
private |
Definition at line 138 of file class.ilStartUpGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Here is the call graph for this function:
|
private |
Definition at line 206 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
private |
Definition at line 201 of file class.ilStartUpGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
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 1914 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().
Here is the caller graph for this function:
|
private |
Definition at line 119 of file class.ilStartUpGUI.php.
References ILIAS\Repository\refinery().
Here is the call graph for this function:
|
private |
Definition at line 1113 of file class.ilStartUpGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
static |
| ilTemplate | ilGlobalTemplateInterface | $tpl |
Definition at line 364 of file class.ilStartUpGUI.php.
References $DIC.
Referenced by ilAccountRegistrationGUI\executeCommand(), ilPasswordAssistanceGUI\showAssistanceForm(), showLoginPage(), ilPasswordAssistanceGUI\showMessageForm(), and ilPasswordAssistanceGUI\showUsernameAssistanceForm().
Here is the caller graph for this function:
|
private |
Definition at line 447 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().
Here is the call graph for this function:
|
private |
Definition at line 1331 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().
Here is the call graph for this function:
|
private |
Definition at line 1028 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
Here is the caller graph for this function:
|
private |
Definition at line 375 of file class.ilStartUpGUI.php.
References 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 126 of file class.ilStartUpGUI.php.
References ILIAS\Repository\refinery(), and ilArrayUtil\stripSlashesRecursive().
Here is the call graph for this function:
|
static |
Definition at line 104 of file class.ilStartUpGUI.php.
|
private |
Definition at line 1097 of file class.ilStartUpGUI.php.
|
private |
Definition at line 394 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 1323 of file class.ilStartUpGUI.php.
References $DIC.
|
private |
Definition at line 1001 of file class.ilStartUpGUI.php.
References $DIC, ANONYMOUS_USER_ID, and ILIAS\Repository\user().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 796 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
Here is the caller graph for this function:
|
private |
Definition at line 811 of file class.ilStartUpGUI.php.
Referenced by showLoginPage().
Here is the caller graph for this function:
|
private |
Definition at line 284 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 212 of file class.ilStartUpGUI.php.
References 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 1234 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.
Here is the call graph for this function:
|
private |
Definition at line 1647 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 948 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<ilSamlIdp> | $idps |
Definition at line 1872 of file class.ilStartUpGUI.php.
References $components, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and mainTemplate().
Here is the call graph for this function:
|
private |
Definition at line 1618 of file class.ilStartUpGUI.php.
References $GLOBALS, ilSamlIdp\getActiveIdpList(), ilSamlSettings\getInstance(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 820 of file class.ilStartUpGUI.php.
References $GLOBALS, and ILIAS\Repository\lng().
Referenced by showLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| ilTemplate | ilGlobalTemplateInterface | $tpl |
Definition at line 901 of file class.ilStartUpGUI.php.
|
private |
Definition at line 63 of file class.ilStartUpGUI.php.
|
private |
Definition at line 60 of file class.ilStartUpGUI.php.
|
private |
Definition at line 53 of file class.ilStartUpGUI.php.
|
private |
Definition at line 64 of file class.ilStartUpGUI.php.
|
private |
Definition at line 59 of file class.ilStartUpGUI.php.
|
private |
Definition at line 61 of file class.ilStartUpGUI.php.
|
staticprivate |
Definition at line 51 of file class.ilStartUpGUI.php.
Referenced by checkForcedCommand().
|
private |
Definition at line 68 of file class.ilStartUpGUI.php.
|
private |
Definition at line 67 of file class.ilStartUpGUI.php.
|
private |
Definition at line 58 of file class.ilStartUpGUI.php.
Referenced by __construct().
|
private |
Definition at line 54 of file class.ilStartUpGUI.php.
|
private |
Definition at line 55 of file class.ilStartUpGUI.php.
Referenced by getLogger().
|
private |
Definition at line 56 of file class.ilStartUpGUI.php.
|
private |
Definition at line 66 of file class.ilStartUpGUI.php.
|
private |
Definition at line 62 of file class.ilStartUpGUI.php.
|
private |
Definition at line 69 of file class.ilStartUpGUI.php.
|
private |
Definition at line 70 of file class.ilStartUpGUI.php.
|
private |
Definition at line 57 of file class.ilStartUpGUI.php.
|
private |
Definition at line 47 of file class.ilStartUpGUI.php.
|
private |
Definition at line 49 of file class.ilStartUpGUI.php.
|
private |
Definition at line 48 of file class.ilStartUpGUI.php.
|
private |
Definition at line 45 of file class.ilStartUpGUI.php.
|
private |
Definition at line 46 of file class.ilStartUpGUI.php.
|
private |
Definition at line 44 of file class.ilStartUpGUI.php.
|
private |
Definition at line 43 of file class.ilStartUpGUI.php.