|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilAuthProviderSaml. More...
Inheritance diagram for ilAuthProviderSaml:
Collaboration diagram for ilAuthProviderSaml:Public Member Functions | |||
| __construct (ilAuthFrontendCredentials $credentials, ?int $a_idp_id=null) | |||
| ilAuthProviderSaml constructor. More... | |||
| doAuthentication (ilAuthStatus $status) | |||
| handleSamlAuth (ilAuthStatus $status) | |||
| migrateAccount (ilAuthStatus $status) | |||
Create new account.
| |||
| createNewAccount (ilAuthStatus $status) | |||
Create new ILIAS account for external_account.
| |||
| setExternalAccountName (string $a_name) | |||
| Set external account name. More... | |||
| getExternalAccountName () | |||
Get external account name.
| |||
| getTriggerAuthMode () | |||
Get auth mode which triggered the account migration 2_1 for ldap account migration with server id 1 11 for apache auth.
| |||
| getUserAuthModeName () | |||
| Get user auth mode name ldap_1 for ldap account migration with server id 1 apache for apache auth. More... | |||
| importUser (?string $a_internal_login, string $a_external_account, array $a_user_data=[]) | |||
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 Member Functions | |
| buildUserAttributeXml (ilXmlWriter $xml_writer, ilExternalAuthUserAttributeMappingRule $rule, string $value) | |
Protected Member Functions inherited from ilAuthProvider | |
| handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
| Handle failed authentication. More... | |
Protected Attributes | |
| $uid = '' | |
| $attributes = [] | |
| $return_to = '' | |
| $idp | |
| $force_new_account = false | |
| $migration_account = '' | |
Private Member Functions | |
| determineUidFromAttributes () | |
Additional Inherited Members | |
Data Fields inherited from ilAuthProvider | |
| const | STATUS_UNDEFINED = 0 |
| const | STATUS_AUTHENTICATION_SUCCESS = 1 |
| const | STATUS_AUTHENTICATION_FAILED = 2 |
| const | STATUS_MIGRATION = 3 |
Class ilAuthProviderSaml.
Definition at line 7 of file class.ilAuthProviderSaml.php.
| ilAuthProviderSaml::__construct | ( | ilAuthFrontendCredentials | $credentials, |
| ?int | $a_idp_id = null |
||
| ) |
ilAuthProviderSaml constructor.
| ilAuthFrontendCredentials | $credentials | |
| int | null | $a_idp_id |
| ilSamlException |
Definition at line 28 of file class.ilAuthProviderSaml.php.
References ilAuthProvider\$credentials, ILIAS\GlobalScreen\Provider\__construct(), ilSamlIdp\getFirstActiveIdp(), and ilSamlIdp\getInstanceByIdpId().
Here is the call graph for this function:
|
protected |
| ilXmlWriter | $xml_writer | |
| ilExternalAuthUserAttributeMappingRule | $rule | |
| string | $value |
Definition at line 410 of file class.ilAuthProviderSaml.php.
References ilUserDefinedFields\_getInstance(), ilExternalAuthUserAttributeMappingRule\getAttribute(), 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.
| ilAuthStatus |
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 265 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 |
| ilException |
Definition at line 47 of file class.ilAuthProviderSaml.php.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Definition at line 67 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 299 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 307 of file class.ilAuthProviderSaml.php.
References 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 315 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
Here is the caller graph for this function:| ilAuthProviderSaml::handleSamlAuth | ( | ilAuthStatus | $status | ) |
| ilAuthStatus | $status |
Definition at line 92 of file class.ilAuthProviderSaml.php.
References $_GET, $GLOBALS, $return_to, ilAuthProvider\$status, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), 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:| ilAuthProviderSaml::importUser | ( | ?string | $a_internal_login, |
| string | $a_external_account, | ||
| array | $a_user_data = [] |
||
| ) |
| string | null | $a_internal_login | |
| string | $a_external_account | |
| array | $a_user_data |
Definition at line 326 of file class.ilAuthProviderSaml.php.
References Vendor\Package\$e, $login, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), buildUserAttributeXml(), ilLoggerFactory\getLogger(), ilAuthProvider\getLogger(), getUserAuthModeName(), IL_USER_MAPPING_ID, 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.
| ilAuthStatus |
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 258 of file class.ilAuthProviderSaml.php.
| ilAuthProviderSaml::setExternalAccountName | ( | string | $a_name | ) |
Set external account name.
| string | $a_name |
Definition at line 291 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
Here is the caller graph for this function:
|
protected |
Definition at line 12 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 18 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 16 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 20 of file class.ilAuthProviderSaml.php.
Referenced by getExternalAccountName().
|
protected |
Definition at line 14 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
protected |
Definition at line 10 of file class.ilAuthProviderSaml.php.