ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilAuthProviderSaml. More...
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=[]) | |||
![]() | |||
__construct (ilAuthCredentials $credentials) | |||
Constructor. More... | |||
getLogger () | |||
Get logger. More... | |||
getCredentials () | |||
![]() | |||
doAuthentication (\ilAuthStatus $status) | |||
Do authentication. More... | |||
Protected Member Functions | |
buildUserAttributeXml (ilXmlWriter $xml_writer, ilExternalAuthUserAttributeMappingRule $rule, string $value) | |
![]() | |
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 | |
![]() | |
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 ILIAS\GlobalScreen\Provider\__construct(), ilSamlIdp\getFirstActiveIdp(), and ilSamlIdp\getInstanceByIdpId().
|
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().
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().
|
private |
ilException |
Definition at line 47 of file class.ilAuthProviderSaml.php.
References $attributes.
Referenced by doAuthentication().
ilAuthProviderSaml::doAuthentication | ( | ilAuthStatus | $status | ) |
Definition at line 67 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 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().
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().
ilAuthProviderSaml::handleSamlAuth | ( | ilAuthStatus | $status | ) |
ilAuthStatus | $status |
Definition at line 92 of file class.ilAuthProviderSaml.php.
References $_GET, $force_new_account, $GLOBALS, $return_to, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), 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().
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(), ilAuthProvider\getLogger(), ilLoggerFactory\getLogger(), getUserAuthModeName(), IL_USER_MAPPING_ID, ilStr\strToLower(), and USER_FOLDER_ID.
Referenced by handleSamlAuth().
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().
|
protected |
Definition at line 12 of file class.ilAuthProviderSaml.php.
Referenced by determineUidFromAttributes().
|
protected |
Definition at line 18 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
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.