|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilAuthProviderSaml. More...
Inheritance diagram for ilAuthProviderSaml:
Collaboration diagram for ilAuthProviderSaml: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... | |
Public Member Functions inherited from ilAuthProvider | |
| __construct (ilAuthCredentials $credentials) | |
| Constructor. More... | |
| getLogger () | |
| Get logger. More... | |
| getCredentials () | |
Public Member Functions inherited from ilAuthProviderInterface | |
| doAuthentication (\ilAuthStatus $status) | |
| Do authentication. More... | |
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 | LOG_COMPONENT = 'auth' |
| const | ERR_WRONG_LOGIN = 'err_wrong_login' |
| const | SESSION_TMP_ATTRIBUTES = 'tmp_attributes' |
| const | 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 | |
Protected Member Functions inherited from ilAuthProvider | |
| 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 42 of file class.ilAuthProviderSaml.php.
References $DIC, ILIAS\MetaData\Repository\Validation\Data\__construct(), ilSamlIdp\getFirstActiveIdp(), ilSamlIdp\getInstanceByIdpId(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 392 of file class.ilAuthProviderSaml.php.
References ilUserDefinedFields\_getInstance(), ilExternalAuthUserAttributeMappingRule\getAttribute(), ilLoggerFactory\getLogger(), and ilXmlWriter\xmlElement().
Referenced by importUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthProviderSaml::createNewAccount | ( | ilAuthStatus | $status | ) |
Create new ILIAS account for external_account.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 266 of file class.ilAuthProviderSaml.php.
References ilSession\get(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
Here is the call graph for this function:
|
private |
Definition at line 62 of file class.ilAuthProviderSaml.php.
References $attributes.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Definition at line 79 of file class.ilAuthProviderSaml.php.
References Vendor\Package\$e, determineUidFromAttributes(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
Here is the call graph for this function:| ilAuthProviderSaml::getExternalAccountName | ( | ) |
Get external account name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 292 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 297 of file class.ilAuthProviderSaml.php.
References ilAuthUtils\AUTH_SAML.
Referenced by handleSamlAuth().
Here is the caller graph for this function:| 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 302 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
Here is the caller graph for this function:
|
private |
Definition at line 100 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 307 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(), ilStr\strToLower(), and USER_FOLDER_ID.
Referenced by handleSamlAuth().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthProviderSaml::migrateAccount | ( | ilAuthStatus | $status | ) |
Create new account.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 262 of file class.ilAuthProviderSaml.php.
| ilAuthProviderSaml::setExternalAccountName | ( | string | $a_name | ) |
Definition at line 287 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
Here is the caller graph for this function:
|
private |
Definition at line 36 of file class.ilAuthProviderSaml.php.
Referenced by determineUidFromAttributes().
|
private |
Definition at line 39 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 33 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 34 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 40 of file class.ilAuthProviderSaml.php.
Referenced by getExternalAccountName().
|
private |
Definition at line 37 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 38 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 28 of file class.ilAuthProviderSaml.php.
|
private |
Definition at line 26 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.