|
ILIAS
release_8 Revision v8.24
|
static utility functions used to manage authentication modes More...
Collaboration diagram for ilAuthUtils:Static Public Member Functions | |
| static | isAuthenticationForced () |
| Check if authentication is should be forced. More... | |
| static | handleForcedAuthentication () |
| static | _getAuthMode (?string $a_auth_mode) |
| static | _getAuthModeName ($a_auth_key) |
| static | _getActiveAuthModes () |
| static | _getAllAuthModes () |
| static | _generateLogin (string $a_login) |
| generate free login by starting with a default string and adding postfix numbers More... | |
| static | _hasMultipleAuthenticationMethods () |
| static | _getMultipleAuthModeOptions (ilLanguage $lng) |
| static | _isExternalAccountEnabled () |
| Check if an external account name is required. More... | |
| static | _allowPasswordModificationByAuthMode ($a_auth_mode) |
| Allow password modification. More... | |
| static | _needsExternalAccountByAuthMode ($a_auth_mode) |
| Check if chosen auth mode needs an external account entry. More... | |
| static | isLocalPasswordEnabledForAuthMode ($a_authmode) |
| Check if local password validation is enabled for a specific auth_mode. More... | |
| static | isPasswordModificationEnabled ($a_authmode) |
| Check if password modification is enabled. More... | |
| static | supportsLocalPasswordValidation ($a_authmode) |
| Check if local password validation is supported. More... | |
| static | getAuthPlugins () |
| Get active enabled auth plugins. More... | |
| static | getAuthModeTranslation (string $a_auth_key, string $auth_name='') |
Data Fields | |
| const | LOCAL_PWV_FULL = 1 |
| const | LOCAL_PWV_NO = 2 |
| const | LOCAL_PWV_USER = 3 |
| const | AUTH_LOCAL = 1 |
| const | AUTH_LDAP = 2 |
| const | AUTH_SCRIPT = 4 |
| const | AUTH_SHIBBOLETH = 5 |
| const | AUTH_CAS = 6 |
| const | AUTH_SOAP = 7 |
| const | AUTH_HTTP = 8 |
| const | AUTH_ECS = 9 |
| const | AUTH_APACHE = 11 |
| const | AUTH_SAML = 12 |
| const | AUTH_OPENID_CONNECT = 15 |
| const | AUTH_PROVIDER_LTI = 22 |
Private Attributes | |
| const | AUTH_INACTIVE = 18 |
| const | AUTH_MULTIPLE = 20 |
| const | AUTH_SESSION = 21 |
| const | AUTH_SOAP_NO_ILIAS_USER = -100 |
| const | AUTH_LDAP_NO_ILIAS_USER = -200 |
| const | AUTH_APACHE_FAILED = -500 |
| const | AUTH_SAML_FAILED = -501 |
| const | AUTH_MODE_INACTIVE = -1000 |
| const | AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL = -101 |
| const | AUTH_CAS_NO_ILIAS_USER = -90 |
| const | AUTH_USER_WRONG_IP = -600 |
| const | AUTH_USER_INACTIVE = -601 |
| const | AUTH_USER_TIME_LIMIT_EXCEEDED = -602 |
| const | AUTH_USER_SIMULTANEOUS_LOGIN = -603 |
static utility functions used to manage authentication modes
Definition at line 26 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
| int|string | auth_mode |
Definition at line 531 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, AUTH_OPENID_CONNECT, and AUTH_PROVIDER_LTI.
Referenced by ilPasswordInputGUI\checkInput().
Here is the caller graph for this function:
|
static |
generate free login by starting with a default string and adding postfix numbers
Definition at line 370 of file class.ilAuthUtils.php.
Referenced by ilCASAttributeToUser\create(), ilAuthProviderECS\createUser(), ilAuthProviderLTI\createUser(), ilAuthProviderSoap\handleSoapAuth(), ilAuthProviderSaml\importUser(), ilOpenIdConnectUserSync\transformToXml(), and ilLDAPAttributeToUser\usersToXML().
Here is the caller graph for this function:
|
static |
Definition at line 258 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getActiveIdpList(), ilAuthProviderLTI\getAuthModes(), ilOpenIdConnectSettings\getInstance(), and ilECSServerSettings\getInstance().
Referenced by ilObjAuthSettingsGUI\authSettingsObject(), ilECSMappingUtils\getAuthModeSelection(), ilUserTableGUI\initFilter(), and ilObjUserGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 321 of file class.ilAuthUtils.php.
References $id, _getAuthModeName(), ilLDAPServer\_getServerList(), ilSamlIdp\getAllIdps(), and ilAuthProviderLTI\getAuthModes().
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 140 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilLDAPServer\getKeyByAuthMode(), ilAuthProviderLTI\getKeyByAuthMode(), and ilSamlIdp\getKeyByAuthMode().
Referenced by ilPasswordInputGUI\checkInput(), ilUserTableGUI\fillRow(), and ilObjUser\getAuthMode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $a_auth_key | int|string |
Definition at line 205 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilLDAPServer\getAuthModeByKey(), ilAuthProviderLTI\getAuthModeByKey(), and ilSamlIdp\getAuthModeByKey().
Referenced by _getAllAuthModes(), ilObjAuthSettingsGUI\authSettingsObject(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilLDAPServer\getAuthenticationMappingKey(), ilUserImportParser\importEndTag(), ilUserTableGUI\initFilter(), ilObjUserGUI\initForm(), and ilUserImportParser\verifyEndTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| ilLanguage | $lng |
Definition at line 426 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, $lng, $server, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, getAuthPlugins(), and ilLDAPServer\getInstanceByServerId().
Referenced by ilStartUpGUI\initStandardLoginForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 394 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, and ilLDAPServer\_getActiveServerList().
Referenced by ilStartUpGUI\doStandardAuthentication(), and ilStartUpGUI\initStandardLoginForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if an external account name is required.
That's the case if LDAP, CAS or SOAP is active
Definition at line 483 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), ilAuthProviderLTI\getActiveAuthModes(), ilSamlIdp\getActiveIdpList(), and ilOpenIdConnectSettings\getInstance().
Referenced by ilObjUserGUI\initForm(), and ilObjUserGUI\saveObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if chosen auth mode needs an external account entry.
| null | string | int | $a_auth_mode | auth_mode |
Definition at line 549 of file class.ilAuthUtils.php.
References AUTH_APACHE, and AUTH_LOCAL.
Referenced by ilObjUser\isPasswordChangeDemanded(), and ilObjUser\isPasswordExpired().
Here is the caller graph for this function:
|
static |
Definition at line 667 of file class.ilAuthUtils.php.
References $DIC, $lng, AUTH_LDAP, AUTH_PROVIDER_LTI, AUTH_SAML, ilSamlIdp\getIdpIdByAuthMode(), ilSamlIdp\getInstanceByIdpId(), ilLDAPServer\getInstanceByServerId(), ilLDAPServer\getServerIdByAuthMode(), ilAuthProviderLTI\getServerIdByAuthMode(), and ilAuthProviderLTI\lookupConsumer().
Referenced by ilUserTableGUI\fillRow(), ilECSMappingUtils\getAuthModeSelection(), ilUserTableGUI\initFilter(), and ilObjUserGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get active enabled auth plugins.
Definition at line 662 of file class.ilAuthUtils.php.
References $GLOBALS.
Referenced by _getMultipleAuthModeOptions(), ilAuthProviderFactory\getProviderByAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
Here is the caller graph for this function:
|
static |
Definition at line 100 of file class.ilAuthUtils.php.
References $DIC, $GLOBALS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilInitialisation\goToPublicSection(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Referenced by ilInitialisation\resumeUserSession().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if authentication is should be forced.
Definition at line 92 of file class.ilAuthUtils.php.
References $DIC.
Referenced by ilInitialisation\resumeUserSession().
Here is the caller graph for this function:
|
static |
Check if local password validation is enabled for a specific auth_mode.
| int | string | $a_authmode |
Definition at line 578 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getIdpIdByAuthMode(), and ilSamlIdp\getInstanceByIdpId().
Referenced by isPasswordModificationEnabled(), and ilPasswordAssistanceGUI\submitAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if password modification is enabled.
| int | string | $a_authmode |
Definition at line 619 of file class.ilAuthUtils.php.
References isLocalPasswordEnabledForAuthMode().
Referenced by ilPersonalSettingsGUI\allowPasswordChange().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if local password validation is supported.
| null | string | int | $a_authmode |
Definition at line 633 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, LOCAL_PWV_FULL, LOCAL_PWV_NO, and LOCAL_PWV_USER.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu().
Here is the caller graph for this function:| const ilAuthUtils::AUTH_APACHE = 11 |
Definition at line 42 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), _getMultipleAuthModeOptions(), _needsExternalAccountByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doApacheAuthentication(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderApache\getTriggerAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), and supportsLocalPasswordValidation().
|
private |
Definition at line 67 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_CAS = 6 |
Definition at line 37 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\authSettingsObject(), ilAuthProviderCAS\doAuthentication(), ilStartUpGUI\doCasAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderCAS\handleLDAPDataSource(), ilCASSettingsGUI\initFormSettings(), ilPersonalSettingsGUI\initPasswordForm(), isLocalPasswordEnabledForAuthMode(), ilCASSettingsGUI\save(), ilStartUpGUI\showLoginForm(), and supportsLocalPasswordValidation().
|
private |
Definition at line 80 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_ECS = 9 |
Definition at line 40 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilAuthProviderFactory\getProviderByAuthMode(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
| const ilAuthUtils::AUTH_HTTP = 8 |
Definition at line 39 of file class.ilAuthUtils.php.
|
private |
Definition at line 48 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_LDAP = 2 |
Definition at line 34 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getAuthModeName(), _getMultipleAuthModeOptions(), ilObjAuthSettingsGUI\authSettingsObject(), ilObjAuthSettingsGUI\getAuthModeTitle(), getAuthModeTranslation(), ilTermsOfServiceWithdrawalGUIHelper\getConsentWithdrawalConfirmation(), ilLDAPServer\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderLDAP\getTriggerAuthMode(), ilAuthLoginPageEditorGUI\initLoginForm(), ilLDAPServer\isAuthModeLDAP(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), ilObjAuthSettingsGUI\setAuthModeObject(), supportsLocalPasswordValidation(), and ilPersonalProfileGUI\withdrawAcceptance().
|
private |
Definition at line 61 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_LOCAL = 1 |
Definition at line 33 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), _getMultipleAuthModeOptions(), _needsExternalAccountByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doMigration(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilTermsOfServiceWithdrawalGUIHelper\getConsentWithdrawalConfirmation(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderSaml\handleSamlAuth(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilAuthLoginPageEditorGUI\initLoginForm(), ilPersonalSettingsGUI\initPasswordForm(), isLocalPasswordEnabledForAuthMode(), ilLTIViewGUI\logout(), ilAuthModeDetermination\read(), ilUserPasswordManager\resetLastPasswordChangeForLocalUsers(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilPersonalSettingsGUI\savePassword(), ilPasswordAssistanceGUI\submitAssistanceForm(), supportsLocalPasswordValidation(), and ilPersonalProfileGUI\withdrawAcceptance().
|
private |
Definition at line 73 of file class.ilAuthUtils.php.
|
private |
Definition at line 51 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_OPENID_CONNECT = 15 |
Definition at line 45 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
| const ilAuthUtils::AUTH_PROVIDER_LTI = 22 |
Definition at line 56 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getAuthModeName(), ilStartUpGUI\doLTIAuthentication(), getAuthModeTranslation(), ilAuthProviderLTI\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderLTI\isAuthModeLTI(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
| const ilAuthUtils::AUTH_SAML = 12 |
Definition at line 43 of file class.ilAuthUtils.php.
Referenced by _getAuthModeName(), ilObjAuthSettingsGUI\authSettingsObject(), ilSamlIdp\delete(), ilStartUpGUI\doLogout(), ilStartUpGUI\doSamlAuthentication(), ilObjAuthSettingsGUI\getAuthModeTitle(), getAuthModeTranslation(), ilSamlIdp\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderSaml\getTriggerAuthMode(), ilSamlIdp\isAuthModeSaml(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\setAuthModeObject(), ilPasswordAssistanceGUI\submitAssistanceForm(), and supportsLocalPasswordValidation().
|
private |
Definition at line 70 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_SCRIPT = 4 |
Definition at line 35 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\getAuthModeTitle(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\saveScriptObject(), ilObjAuthSettingsGUI\setAuthModeObject(), and supportsLocalPasswordValidation().
|
private |
Definition at line 54 of file class.ilAuthUtils.php.
| const ilAuthUtils::AUTH_SHIBBOLETH = 5 |
Definition at line 36 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\authSettingsObject(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilStartUpGUI\doShibbolethAuthentication(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilAuthProviderFactory\getProviderByAuthMode(), ilPersonalSettingsGUI\initPasswordForm(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\setAuthModeObject(), ilStartUpGUI\showLoginForm(), and supportsLocalPasswordValidation().
| const ilAuthUtils::AUTH_SOAP = 7 |
Definition at line 38 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilAuthProviderFactory\getProviderByAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), and supportsLocalPasswordValidation().
|
private |
Definition at line 59 of file class.ilAuthUtils.php.
|
private |
Definition at line 78 of file class.ilAuthUtils.php.
|
private |
Definition at line 85 of file class.ilAuthUtils.php.
|
private |
Definition at line 87 of file class.ilAuthUtils.php.
|
private |
Definition at line 86 of file class.ilAuthUtils.php.
|
private |
Definition at line 84 of file class.ilAuthUtils.php.
| const ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 28 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
| const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 29 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
| const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 30 of file class.ilAuthUtils.php.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu(), and supportsLocalPasswordValidation().