|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Auth prvider for ecs auth. More...
Inheritance diagram for ilAuthProviderECS:
Collaboration diagram for ilAuthProviderECS:Public Member Functions | |
| __construct (\ilAuthCredentials $credentials) | |
| Constructor. More... | |
| getAbreviation () | |
| get abbreviation More... | |
| getMID () | |
| get mid More... | |
| setMID ($a_mid) | |
| setCurrentServer (ilECSSetting $server=null) | |
| Set current server. More... | |
| getCurrentServer () | |
| Get current server. More... | |
| getServerSettings () | |
| Get server settings. More... | |
| doAuthentication (\ilAuthStatus $status) | |
| Tra ecs authentication. More... | |
| handleLogin () | |
| Called from base class after successful login. More... | |
| validateHash () | |
| Validate ECS hash. More... | |
Public Member Functions inherited from ilAuthProvider | |
| __construct (ilAuthCredentials $credentials) | |
| Constructor. More... | |
| getLogger () | |
| Get logger. More... | |
| getCredentials () | |
| doAuthentication (\ilAuthStatus $status) | |
| Do authentication. More... | |
Protected Member Functions | |
| createUser (ilECSUser $user) | |
| create new user More... | |
| updateUser (ilECSUser $user, $a_local_user_id) | |
| update existing user More... | |
| resetMailOptions ($a_usr_id) | |
| Reset mail options to "local only". More... | |
Protected Member Functions inherited from ilAuthProvider | |
| handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
| Handle failed authentication. More... | |
Protected Attributes | |
| $mid = null | |
| $abreviation = null | |
| $currentServer = null | |
| $servers = null | |
Private Member Functions | |
| initECSServices () | |
| Init ECS Services @access private. More... | |
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 |
Auth prvider for ecs auth.
Definition at line 14 of file class.ilAuthProviderECS.php.
| ilAuthProviderECS::__construct | ( | \ilAuthCredentials | $credentials | ) |
Constructor.
| \ilAuthCredentials | $credentials |
Definition at line 27 of file class.ilAuthProviderECS.php.
References ilAuthProvider\$credentials, ILIAS\GlobalScreen\Provider\__construct(), and initECSServices().
Here is the call graph for this function:
|
protected |
create new user
@access protected
Definition at line 258 of file class.ilAuthProviderECS.php.
References $DIC, $ilSetting, ilAuthUtils\_generateLogin(), ilObject\_writeImportId(), getAbreviation(), getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), ilAuthProvider\getLogger(), ilECSUser\getLogin(), IL_PASSWD_CRYPTED, resetMailOptions(), and SYSTEM_USER_ID.
Referenced by handleLogin().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthProviderECS::doAuthentication | ( | \ilAuthStatus | $status | ) |
Tra ecs authentication.
| \ilAuthStatus | $status |
Implements ilAuthProviderInterface.
Definition at line 94 of file class.ilAuthProviderECS.php.
References $server, ilAuthProvider\$status, ilAuthProvider\getLogger(), getServerSettings(), ilAuthProvider\handleAuthenticationFail(), handleLogin(), setCurrentServer(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_AUTHENTICATED, and validateHash().
Here is the call graph for this function:| ilAuthProviderECS::getAbreviation | ( | ) |
get abbreviation
@access public
Definition at line 41 of file class.ilAuthProviderECS.php.
References $abreviation.
Referenced by createUser().
Here is the caller graph for this function:| ilAuthProviderECS::getCurrentServer | ( | ) |
Get current server.
Definition at line 74 of file class.ilAuthProviderECS.php.
References $currentServer.
Referenced by createUser(), handleLogin(), updateUser(), and validateHash().
Here is the caller graph for this function:| ilAuthProviderECS::getMID | ( | ) |
get mid
@access public
Definition at line 51 of file class.ilAuthProviderECS.php.
References $mid.
Referenced by handleLogin().
Here is the caller graph for this function:| ilAuthProviderECS::getServerSettings | ( | ) |
Get server settings.
Definition at line 83 of file class.ilAuthProviderECS.php.
References $servers.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderECS::handleLogin | ( | ) |
Called from base class after successful login.
| string | username |
Definition at line 128 of file class.ilAuthProviderECS.php.
References $_GET, ilObjUser\_lookupId(), ilObject\_lookupObjIdByImportId(), createUser(), getCurrentServer(), ilAuthProvider\getLogger(), getMID(), and updateUser().
Referenced by doAuthentication().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Init ECS Services @access private.
Definition at line 247 of file class.ilAuthProviderECS.php.
References ilECSServerSettings\getInstance().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reset mail options to "local only".
Definition at line 372 of file class.ilAuthProviderECS.php.
References ilMailOptions\INCOMING_LOCAL.
Referenced by createUser(), and updateUser().
Here is the caller graph for this function:| ilAuthProviderECS::setCurrentServer | ( | ilECSSetting | $server = null | ) |
Set current server.
| ilECSSetting | $server |
Definition at line 65 of file class.ilAuthProviderECS.php.
References $server.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderECS::setMID | ( | $a_mid | ) |
Definition at line 56 of file class.ilAuthProviderECS.php.
Referenced by validateHash().
Here is the caller graph for this function:
|
protected |
update existing user
@access protected
Definition at line 330 of file class.ilAuthProviderECS.php.
References $DIC, getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), ilAuthProvider\getLogger(), and resetMailOptions().
Referenced by handleLogin().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthProviderECS::validateHash | ( | ) |
Validate ECS hash.
@access public
| string | username |
| string | pass |
Definition at line 170 of file class.ilAuthProviderECS.php.
References $_GET, $DIC, Vendor\Package\$e, $res, ilLogLevel\DEBUG, getCurrentServer(), ilECSCommunityReader\getInstanceByServerId(), ilAuthProvider\getLogger(), and setMID().
Referenced by doAuthentication().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilAuthProviderECS.php.
Referenced by getAbreviation().
|
protected |
Definition at line 19 of file class.ilAuthProviderECS.php.
Referenced by getCurrentServer().
|
protected |
Definition at line 16 of file class.ilAuthProviderECS.php.
Referenced by getMID().
|
protected |
Definition at line 20 of file class.ilAuthProviderECS.php.
Referenced by getServerSettings().