ILIAS
release_8 Revision v8.19
|
Class ilAuthProviderSaml. More...
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) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getCredentials () | |
![]() | |
doAuthentication (\ilAuthStatus $status) | |
Do authentication. More... | |
Protected Attributes | |
ilSamlIdp | $idp |
array | $attributes = [] |
string | $return_to = '' |
string | $uid = '' |
bool | $force_new_account = false |
string | $migration_account = '' |
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 | |
ilLanguage | $lng |
Additional Inherited Members | |
![]() | |
handleAuthenticationFail (ilAuthStatus $status, string $a_reason) | |
Handle failed authentication. More... | |
Class ilAuthProviderSaml.
Definition at line 24 of file class.ilAuthProviderSaml.php.
ilAuthProviderSaml::__construct | ( | ilAuthCredentials | $credentials, |
?int | $a_idp_id = null |
||
) |
Definition at line 35 of file class.ilAuthProviderSaml.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilSamlIdp\getFirstActiveIdp(), ilSamlIdp\getInstanceByIdpId(), and ILIAS\Repository\lng().
|
private |
Definition at line 385 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 259 of file class.ilAuthProviderSaml.php.
References ilSession\get(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
|
private |
Definition at line 55 of file class.ilAuthProviderSaml.php.
References $attributes.
Referenced by doAuthentication().
ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Definition at line 72 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 285 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 290 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 295 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
|
private |
Definition at line 93 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(), 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 300 of file class.ilAuthProviderSaml.php.
References Vendor\Package\$e, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), buildUserAttributeXml(), ilAuthProvider\getLogger(), ilLoggerFactory\getLogger(), getUserAuthModeName(), IL_USER_MAPPING_ID, ILIAS\Repository\lng(), ilStr\strToLower(), and USER_FOLDER_ID.
Referenced by handleSamlAuth().
ilAuthProviderSaml::migrateAccount | ( | ilAuthStatus | $status | ) |
Create new account.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 255 of file class.ilAuthProviderSaml.php.
ilAuthProviderSaml::setExternalAccountName | ( | string | $a_name | ) |
Definition at line 280 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
protected |
Definition at line 29 of file class.ilAuthProviderSaml.php.
Referenced by determineUidFromAttributes().
|
protected |
Definition at line 32 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 26 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 27 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 33 of file class.ilAuthProviderSaml.php.
Referenced by getExternalAccountName().
|
protected |
Definition at line 30 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 31 of file class.ilAuthProviderSaml.php.