|
ILIAS
release_8 Revision v8.24
|
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... | |
| 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... | |
| getExternalAccountName () | |
| Get external account name. More... | |
| migrateAccount (ilAuthStatus $status) | |
| Create new account. More... | |
| createNewAccount (ilAuthStatus $status) | |
| Create new ILIAS account for external_account. 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 | |
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 35 of file class.ilAuthProviderSaml.php.
References ilAuthProvider\$credentials, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilSamlIdp\getFirstActiveIdp(), ilSamlIdp\getInstanceByIdpId(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 385 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 259 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 55 of file class.ilAuthProviderSaml.php.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Definition at line 72 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 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().
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 295 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
Here is the caller graph for this function:
|
private |
Definition at line 93 of file class.ilAuthProviderSaml.php.
References $GLOBALS, ilAuthProvider\$status, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), ilAuthUtils\AUTH_LOCAL, ilLoggerFactory\getLogger(), getTriggerAuthMode(), getUserAuthModeName(), ilAuthProvider\handleAuthenticationFail(), importUser(), ilSession\set(), 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 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().
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 255 of file class.ilAuthProviderSaml.php.
| ilAuthProviderSaml::setExternalAccountName | ( | string | $a_name | ) |
Definition at line 280 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
Here is the caller graph for this function:
|
protected |
Definition at line 29 of file class.ilAuthProviderSaml.php.
|
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.