ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (ilAuthCredentials $credentials, ?int $a_idp_id=null) | |
doAuthentication (ilAuthStatus $status) | |
migrateAccount (ilAuthStatus $status) | |
Create new account. More... | |
createNewAccount (ilAuthStatus $status) | |
Create new ILIAS account for external_account. More... | |
setExternalAccountName (string $a_name) | |
getExternalAccountName () | |
Get external account name. More... | |
getTriggerAuthMode () | |
Get auth mode which triggered the account migration 2_1 for ldap account migration with server id 1 11 for apache auth. More... | |
getUserAuthModeName () | |
Get user auth mode name ldap_1 for ldap account migration with server id 1 apache for apache auth. More... | |
![]() | |
__construct (ilAuthCredentials $credentials) | |
getLogger () | |
getCredentials () | |
Private Member Functions | |
determineUidFromAttributes () | |
handleSamlAuth (ilAuthStatus $status) | |
importUser (?string $a_internal_login, string $a_external_account, array $a_user_data=[]) | |
buildUserAttributeXml (ilXmlWriter $xml_writer, ilExternalAuthUserAttributeMappingRule $rule, string $value) | |
Private Attributes | |
const string | LOG_COMPONENT = 'auth' |
const string | ERR_WRONG_LOGIN = 'err_wrong_login' |
const string | SESSION_TMP_ATTRIBUTES = 'tmp_attributes' |
const string | SESSION_TMP_RETURN_TO = 'tmp_return_to' |
ilSamlIdp | $idp |
readonly ilLanguage | $lng |
array | $attributes = [] |
string | $return_to = '' |
string | $uid = '' |
bool | $force_new_account = false |
string | $migration_account = '' |
Additional Inherited Members | |
![]() | |
handleAuthenticationFail (ilAuthStatus $status, string $a_reason) | |
Definition at line 21 of file class.ilAuthProviderSaml.php.
ilAuthProviderSaml::__construct | ( | ilAuthCredentials | $credentials, |
?int | $a_idp_id = null |
||
) |
Definition at line 39 of file class.ilAuthProviderSaml.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilSamlIdp\getFirstActiveIdp(), ilSamlIdp\getInstanceByIdpId(), ILIAS\Repository\lng(), and null.
|
private |
Definition at line 389 of file class.ilAuthProviderSaml.php.
References ilUserDefinedFields\_getInstance(), ilExternalAuthUserAttributeMappingRule\getAttribute(), ilLoggerFactory\getLogger(), and ilXmlWriter\xmlElement().
Referenced by importUser().
ilAuthProviderSaml::createNewAccount | ( | ilAuthStatus | $status | ) |
Create new ILIAS account for external_account.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 263 of file class.ilAuthProviderSaml.php.
References ilSession\get(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
|
private |
Definition at line 59 of file class.ilAuthProviderSaml.php.
References $attributes.
Referenced by doAuthentication().
ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Implements ilAuthProviderInterface.
Definition at line 76 of file class.ilAuthProviderSaml.php.
References Vendor\Package\$e, determineUidFromAttributes(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
ilAuthProviderSaml::getExternalAccountName | ( | ) |
Get external account name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 289 of file class.ilAuthProviderSaml.php.
References $migration_account.
ilAuthProviderSaml::getTriggerAuthMode | ( | ) |
Get auth mode which triggered the account migration 2_1 for ldap account migration with server id 1 11 for apache auth.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 294 of file class.ilAuthProviderSaml.php.
References ilAuthUtils\AUTH_SAML.
Referenced by handleSamlAuth().
ilAuthProviderSaml::getUserAuthModeName | ( | ) |
Get user auth mode name ldap_1 for ldap account migration with server id 1 apache for apache auth.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 299 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
|
private |
Definition at line 97 of file class.ilAuthProviderSaml.php.
References $GLOBALS, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), ilAuthUtils\AUTH_LOCAL, ilLoggerFactory\getLogger(), getTriggerAuthMode(), getUserAuthModeName(), ilAuthProvider\handleAuthenticationFail(), importUser(), null, ilSession\set(), ilAuthStatus\setAuthenticatedUserId(), setExternalAccountName(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by createNewAccount(), and doAuthentication().
|
private |
Definition at line 304 of file class.ilAuthProviderSaml.php.
References Vendor\Package\$e, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), buildUserAttributeXml(), ilAuthProvider\getLogger(), ilLoggerFactory\getLogger(), getUserAuthModeName(), ilUserImportParser\IL_USER_MAPPING_ID, ILIAS\Repository\lng(), null, ilStr\strToLower(), and USER_FOLDER_ID.
Referenced by handleSamlAuth().
ilAuthProviderSaml::migrateAccount | ( | ilAuthStatus | $status | ) |
Create new account.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 259 of file class.ilAuthProviderSaml.php.
ilAuthProviderSaml::setExternalAccountName | ( | string | $a_name | ) |
Definition at line 284 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
private |
Definition at line 33 of file class.ilAuthProviderSaml.php.
Referenced by determineUidFromAttributes().
|
private |
Definition at line 36 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 30 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 31 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 37 of file class.ilAuthProviderSaml.php.
Referenced by getExternalAccountName().
|
private |
Definition at line 34 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 35 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 25 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 23 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 27 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 28 of file class.ilAuthProviderSaml.php.