ILIAS
release_8 Revision v8.19
|
static utility functions used to manage authentication modes More...
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.
Referenced by ilPasswordInputGUI\checkInput(), and ilObjUserGUI\loadUserDefinedDataFromForm().
|
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().
|
static |
Definition at line 258 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), ilSamlIdp\getActiveIdpList(), ilAuthProviderLTI\getAuthModes(), ilECSServerSettings\getInstance(), and ilOpenIdConnectSettings\getInstance().
Referenced by ilObjAuthSettingsGUI\authSettingsObject(), ilECSMappingUtils\getAuthModeSelection(), ilUserTableGUI\initFilter(), and ilObjUserGUI\initForm().
|
static |
Definition at line 321 of file class.ilAuthUtils.php.
References $id, ilLDAPServer\_getServerList(), ilSamlIdp\getAllIdps(), and ilAuthProviderLTI\getAuthModes().
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
|
static |
Definition at line 140 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilAuthProviderLTI\getKeyByAuthMode(), ilSamlIdp\getKeyByAuthMode(), and ilLDAPServer\getKeyByAuthMode().
Referenced by ilPasswordInputGUI\checkInput(), ilUserTableGUI\fillRow(), ilObjUser\getAuthMode(), and ilObjUserGUI\loadUserDefinedDataFromForm().
|
static |
$a_auth_key | int|string |
Definition at line 205 of file class.ilAuthUtils.php.
References ilAuthProviderLTI\getAuthModeByKey(), ilSamlIdp\getAuthModeByKey(), and ilLDAPServer\getAuthModeByKey().
Referenced by ilObjUser\_checkExternalAuthAccount(), ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilLDAPServer\getAuthenticationMappingKey(), ilUserImportParser\importEndTag(), ilUserTableGUI\initFilter(), ilObjUserGUI\initForm(), and ilUserImportParser\verifyEndTag().
|
static |
ilLanguage | $lng |
Definition at line 426 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, $server, ilLDAPServer\_getActiveServerList(), ilLDAPServer\getInstanceByServerId(), and ilLanguage\txt().
Referenced by ilStartUpGUI\initStandardLoginForm().
|
static |
Definition at line 394 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, and ilLDAPServer\_getActiveServerList().
Referenced by ilStartUpGUI\doStandardAuthentication(), and ilStartUpGUI\initStandardLoginForm().
|
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().
|
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 $DIC, and $ilSetting.
Referenced by ilObjUser\isPasswordChangeDemanded(), and ilObjUser\isPasswordExpired().
|
static |
Definition at line 667 of file class.ilAuthUtils.php.
References $DIC, $lng, ilSamlIdp\getIdpIdByAuthMode(), ilSamlIdp\getInstanceByIdpId(), ilLDAPServer\getInstanceByServerId(), ilAuthProviderLTI\getServerIdByAuthMode(), ilLDAPServer\getServerIdByAuthMode(), and ilAuthProviderLTI\lookupConsumer().
Referenced by ilUserTableGUI\fillRow(), ilECSMappingUtils\getAuthModeSelection(), ilUserTableGUI\initFilter(), and ilObjUserGUI\initForm().
|
static |
Get active enabled auth plugins.
Definition at line 662 of file class.ilAuthUtils.php.
References $GLOBALS.
Referenced by ilAuthProviderFactory\getProviderByAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
|
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().
|
static |
Check if authentication is should be forced.
Definition at line 92 of file class.ilAuthUtils.php.
References $DIC.
Referenced by ilInitialisation\resumeUserSession().
|
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, ilSamlIdp\getIdpIdByAuthMode(), and ilSamlIdp\getInstanceByIdpId().
Referenced by ilPasswordAssistanceGUI\submitAssistanceForm().
|
static |
Check if password modification is enabled.
int | string | $a_authmode |
Definition at line 619 of file class.ilAuthUtils.php.
Referenced by ilPersonalSettingsGUI\allowPasswordChange().
|
static |
Check if local password validation is supported.
null | string | int | $a_authmode |
Definition at line 633 of file class.ilAuthUtils.php.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu().
const ilAuthUtils::AUTH_APACHE = 11 |
Definition at line 42 of file class.ilAuthUtils.php.
Referenced by ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doApacheAuthentication(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderApache\getTriggerAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilAuthModeDetermination\read(), and ilObjAuthSettingsGUI\saveApacheSettingsObject().
|
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 ilObjAuthSettingsGUI\authSettingsObject(), ilAuthProviderCAS\doAuthentication(), ilStartUpGUI\doCasAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderCAS\handleLDAPDataSource(), ilCASSettingsGUI\initFormSettings(), ilPersonalSettingsGUI\initPasswordForm(), ilCASSettingsGUI\save(), and ilStartUpGUI\showLoginForm().
|
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 ilAuthProviderFactory\getProviderByAuthMode(), and ilTermsOfServiceWithdrawalGUIHelper\handleWithdrawalLogoutRequest().
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 ilObjAuthSettingsGUI\authSettingsObject(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilTermsOfServiceWithdrawalGUIHelper\getConsentWithdrawalConfirmation(), ilLDAPServer\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderLDAP\getTriggerAuthMode(), ilAuthLoginPageEditorGUI\initLoginForm(), ilLDAPServer\isAuthModeLDAP(), ilAuthModeDetermination\read(), ilObjAuthSettingsGUI\setAuthModeObject(), 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 ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doMigration(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilTermsOfServiceWithdrawalGUIHelper\getConsentWithdrawalConfirmation(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderSaml\handleSamlAuth(), ilTermsOfServiceWithdrawalGUIHelper\handleWithdrawalLogoutRequest(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilAuthLoginPageEditorGUI\initLoginForm(), ilPersonalSettingsGUI\initPasswordForm(), ilLTIViewGUI\logout(), ilAuthModeDetermination\read(), ilUserPasswordManager\resetLastPasswordChangeForLocalUsers(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilPersonalSettingsGUI\savePassword(), ilPasswordAssistanceGUI\submitAssistanceForm(), 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 ilObjAuthSettingsGUI\authSettingsObject(), ilStartUpGUI\doOpenIdConnectAuthentication(), and ilAuthProviderFactory\getProviderByAuthMode().
const ilAuthUtils::AUTH_PROVIDER_LTI = 22 |
const ilAuthUtils::AUTH_SAML = 12 |
Definition at line 43 of file class.ilAuthUtils.php.
Referenced by ilObjAuthSettingsGUI\authSettingsObject(), ilSamlIdp\delete(), ilStartUpGUI\doLogout(), ilStartUpGUI\doSamlAuthentication(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilSamlIdp\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderSaml\getTriggerAuthMode(), ilSamlIdp\isAuthModeSaml(), ilObjAuthSettingsGUI\setAuthModeObject(), and ilPasswordAssistanceGUI\submitAssistanceForm().
|
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 ilObjAuthSettingsGUI\getAuthModeTitle(), ilObjAuthSettingsGUI\saveScriptObject(), and ilObjAuthSettingsGUI\setAuthModeObject().
|
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 ilObjAuthSettingsGUI\authSettingsObject(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilStartUpGUI\doShibbolethAuthentication(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilAuthProviderFactory\getProviderByAuthMode(), ilPersonalSettingsGUI\initPasswordForm(), ilObjAuthSettingsGUI\setAuthModeObject(), and ilStartUpGUI\showLoginForm().
const ilAuthUtils::AUTH_SOAP = 7 |
Definition at line 38 of file class.ilAuthUtils.php.
Referenced by ilAuthProviderFactory\getProviderByAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
|
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.
const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 29 of file class.ilAuthUtils.php.
const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 30 of file class.ilAuthUtils.php.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu().