ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Auth prvider for ecs auth. More...
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 () | |
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 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 initECSServices().
|
protected |
create new user
protected
Definition at line 278 of file class.ilAuthProviderECS.php.
References $ilLog, $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 time.
Referenced by handleLogin().
ilAuthProviderECS::doAuthentication | ( | \ilAuthStatus | $status | ) |
Tra ecs authentication.
\ilAuthStatus | $status |
Implements ilAuthProviderInterface.
Definition at line 94 of file class.ilAuthProviderECS.php.
References $server, ilAuthProvider\getLogger(), getServerSettings(), ilAuthProvider\handleAuthenticationFail(), handleLogin(), ilAuthStatus\setAuthenticatedUserId(), setCurrentServer(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_AUTHENTICATED, and validateHash().
ilAuthProviderECS::getAbreviation | ( | ) |
get abbreviation
public
Definition at line 41 of file class.ilAuthProviderECS.php.
References $abreviation.
Referenced by createUser().
ilAuthProviderECS::getCurrentServer | ( | ) |
Get current server.
Definition at line 74 of file class.ilAuthProviderECS.php.
References $currentServer.
Referenced by createUser(), handleLogin(), updateUser(), and validateHash().
ilAuthProviderECS::getMID | ( | ) |
get mid
public
Definition at line 51 of file class.ilAuthProviderECS.php.
References $mid.
Referenced by handleLogin().
ilAuthProviderECS::getServerSettings | ( | ) |
Get server settings.
Definition at line 83 of file class.ilAuthProviderECS.php.
References $servers.
Referenced by doAuthentication().
ilAuthProviderECS::handleLogin | ( | ) |
Called from base class after successful login.
string | username |
Definition at line 131 of file class.ilAuthProviderECS.php.
References $_GET, ilObjUser\_lookupId(), ilObject\_lookupObjIdByImportId(), createUser(), getCurrentServer(), ilAuthProvider\getLogger(), getMID(), and updateUser().
Referenced by doAuthentication().
|
private |
Init ECS Services private.
Definition at line 267 of file class.ilAuthProviderECS.php.
References ilECSServerSettings\getInstance().
Referenced by __construct().
|
protected |
Reset mail options to "local only".
Definition at line 386 of file class.ilAuthProviderECS.php.
References $options, and IL_MAIL_LOCAL.
Referenced by createUser(), and updateUser().
ilAuthProviderECS::setCurrentServer | ( | ilECSSetting | $server = null | ) |
Set current server.
ilECSSetting | $server |
Definition at line 65 of file class.ilAuthProviderECS.php.
References $server.
Referenced by doAuthentication().
ilAuthProviderECS::setMID | ( | $a_mid | ) |
Definition at line 56 of file class.ilAuthProviderECS.php.
Referenced by validateHash().
|
protected |
update existing user
protected
Definition at line 346 of file class.ilAuthProviderECS.php.
References $ilLog, getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), ilAuthProvider\getLogger(), resetMailOptions(), and time.
Referenced by handleLogin().
ilAuthProviderECS::validateHash | ( | ) |
Validate ECS hash.
public
string | username |
string | pass |
Definition at line 177 of file class.ilAuthProviderECS.php.
References $_GET, $ilLog, $reader, $res, ilLogLevel\DEBUG, getCurrentServer(), ilECSCommunityReader\getInstanceByServerId(), ilAuthProvider\getLogger(), and setMID().
Referenced by doAuthentication().
|
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().