ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilAuthProviderSaml. More...
Public Member Functions | ||||
__construct (\ilAuthFrontendCredentials $credentials, $a_idp_id=null) | ||||
ilAuthProviderSaml constructor. More... | ||||
doAuthentication (\ilAuthStatus $status) | ||||
Do authentication.
| ||||
handleSamlAuth (\ilAuthStatus $status) | ||||
migrateAccount (ilAuthStatus $status) | ||||
Create new account.
| ||||
createNewAccount (\ilAuthStatus $status) | ||||
setExternalAccountName ($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 ($a_internal_login, $a_external_account, $a_user_data=array()) | ||||
Public Member Functions inherited from ilAuthProvider | ||||
__construct (ilAuthCredentials $credentials) | ||||
Constructor. More... | ||||
getLogger () | ||||
Get logger. More... | ||||
getCredentials () | ||||
Public Member Functions inherited from ilAuthProviderAccountMigrationInterface | ||||
createNewAccount (ilAuthStatus $status) | ||||
Create new ILIAS account for external_account. More... | ||||
Protected Member Functions | |
buildUserAttributeXml (\ilXmlWriter $xml_writer, \ilExternalAuthUserAttributeMappingRule $rule, $value) | |
Protected Member Functions inherited from ilAuthProvider | |
handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
Handle failed authentication. More... | |
Protected Attributes | |
$uid = '' | |
$attributes = array() | |
$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, |
$a_idp_id = null |
|||
) |
ilAuthProviderSaml constructor.
\ilAuthFrontendCredentials | \ilAuthFrontendCredentialsSaml | $credentials | |
null | $a_idp_id |
Definition at line 44 of file class.ilAuthProviderSaml.php.
References ilSamlIdp\getFirstActiveIdp(), and ilSamlIdp\getInstanceByIdpId().
|
protected |
\ilXmlWriter | $xml_writer | |
\ilExternalAuthUserAttributeMappingRule | $rule | |
$value |
Definition at line 348 of file class.ilAuthProviderSaml.php.
References ilUserDefinedFields\_getInstance(), array, ilExternalAuthUserAttributeMappingRule\getAttribute(), and ilXmlWriter\xmlElement().
Referenced by importUser().
ilAuthProviderSaml::createNewAccount | ( | \ilAuthStatus | $status | ) |
Definition at line 213 of file class.ilAuthProviderSaml.php.
References ilSession\get(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
|
private |
Definition at line 63 of file class.ilAuthProviderSaml.php.
References $attributes.
Referenced by doAuthentication().
ilAuthProviderSaml::doAuthentication | ( | \ilAuthStatus | $status | ) |
Do authentication.
\ilAuthStatus | $status | Authentication status |
Implements ilAuthProviderInterface.
Definition at line 83 of file class.ilAuthProviderSaml.php.
References determineUidFromAttributes(), ilAuthProvider\getLogger(), ilAuthProvider\handleAuthenticationFail(), and handleSamlAuth().
ilAuthProviderSaml::getExternalAccountName | ( | ) |
Get external account name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 245 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 253 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 261 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth(), and importUser().
ilAuthProviderSaml::handleSamlAuth | ( | \ilAuthStatus | $status | ) |
ilAuthStatus | $status |
Definition at line 106 of file class.ilAuthProviderSaml.php.
References $_GET, $force_new_account, $GLOBALS, $return_to, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), AUTH_LOCAL, defined, 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 | ( | $a_internal_login, | |
$a_external_account, | |||
$a_user_data = array() |
|||
) |
string | null | $a_internal_login | |
string | $a_external_account | |
array | $a_user_data |
Definition at line 272 of file class.ilAuthProviderSaml.php.
References $rule, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), array, buildUserAttributeXml(), ilAuthProvider\getLogger(), ilLoggerFactory\getLogger(), getUserAuthModeName(), IL_USER_MAPPING_ID, time, and USER_FOLDER_ID.
Referenced by handleSamlAuth().
ilAuthProviderSaml::migrateAccount | ( | ilAuthStatus | $status | ) |
Create new account.
ilAuthStatus |
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 206 of file class.ilAuthProviderSaml.php.
ilAuthProviderSaml::setExternalAccountName | ( | $a_name | ) |
Set external account name.
string | $a_name |
Definition at line 237 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
protected |
Definition at line 17 of file class.ilAuthProviderSaml.php.
Referenced by determineUidFromAttributes().
|
protected |
Definition at line 32 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
protected |
Definition at line 27 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 37 of file class.ilAuthProviderSaml.php.
Referenced by getExternalAccountName().
|
protected |
Definition at line 22 of file class.ilAuthProviderSaml.php.
Referenced by handleSamlAuth().
|
protected |
Definition at line 12 of file class.ilAuthProviderSaml.php.