|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilAuthProviderSaml. More...
Inheritance diagram for ilAuthProviderSaml:
Collaboration diagram for ilAuthProviderSaml: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 () | ||||
| doAuthentication (\ilAuthStatus $status) | ||||
| Do authentication. More... | ||||
Public Member Functions inherited from ilAuthProviderAccountMigrationInterface | ||||
| 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, $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 ilAuthProvider\$credentials, ilSamlIdp\getFirstActiveIdp(), and ilSamlIdp\getInstanceByIdpId().
Here is the call graph for this function:
|
protected |
| \ilXmlWriter | $xml_writer | |
| \ilExternalAuthUserAttributeMappingRule | $rule | |
| $value |
Definition at line 348 of file class.ilAuthProviderSaml.php.
References $rule, ilUserDefinedFields\_getInstance(), 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 | ) |
Definition at line 213 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 63 of file class.ilAuthProviderSaml.php.
References sprintf.
Referenced by doAuthentication().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
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 261 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 106 of file class.ilAuthProviderSaml.php.
References $_GET, $GLOBALS, $return_to, ilAuthProvider\$status, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_loginExists(), ilObjUser\_lookupId(), ilObjUser\_writeAuthMode(), AUTH_LOCAL, defined, ilLoggerFactory\getLogger(), getTriggerAuthMode(), getUserAuthModeName(), ilAuthProvider\handleAuthenticationFail(), importUser(), ilSession\set(), setExternalAccountName(), ilAuthStatus\setStatus(), sprintf, 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 | ( | $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(), buildUserAttributeXml(), ilLoggerFactory\getLogger(), ilAuthProvider\getLogger(), getUserAuthModeName(), IL_USER_MAPPING_ID, sprintf, 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 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().
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilAuthProviderSaml.php.
|
protected |
Definition at line 32 of file class.ilAuthProviderSaml.php.
|
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.