|
ILIAS
release_8 Revision v8.24
|
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 (int $a_mid) | |
| setCurrentServer (ilECSSetting $server) | |
| Set current server. More... | |
| getCurrentServer () | |
| Get current server. More... | |
| getServerSettings () | |
| Get server settings. More... | |
| doAuthentication (\ilAuthStatus $status) | |
| Try ecs authentication. More... | |
| handleLogin () | |
| Called from base class after successful login. More... | |
| initRemoteUserWithRemoteId () | |
| 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 | |
| handleLoginByAuthMode (ilAuthStatus $status) | |
| Redirects to shibboleth login; to standard login page for LDAP based authentication or authenticates/creates a local account. More... | |
| resumeCurrentSession () | |
| createUser (ilECSUser $user) | |
| create new user More... | |
| updateUser (ilECSUser $user, int $a_local_user_id) | |
| update existing user More... | |
| resetMailOptions (int $a_usr_id) | |
| Reset mail options to "local only". More... | |
Protected Member Functions inherited from ilAuthProvider | |
| handleAuthenticationFail (ilAuthStatus $status, string $a_reason) | |
| Handle failed authentication. More... | |
Protected Attributes | |
| int | $mid = null |
| string | $abreviation = null |
| ilECSSetting | $currentServer |
| ilECSServerSettings | $servers |
Private Member Functions | |
| initECSServices () | |
| Init ECS Services. More... | |
Private Attributes | |
| ilIniFile | $clientIniFile |
| ilRbacAdmin | $rbacAdmin |
| ilSetting | $setting |
| ilLanguage | $lng |
| Refinery | $refinery |
| HTTPServices | $http |
| ilAuthSession | $authSession |
| ilCtrlInterface | $ctrl |
Auth prvider for ecs auth.
Definition at line 28 of file class.ilAuthProviderECS.php.
| ilAuthProviderECS::__construct | ( | \ilAuthCredentials | $credentials | ) |
Constructor.
| \ilAuthCredentials | $credentials |
Definition at line 50 of file class.ilAuthProviderECS.php.
References ilAuthProvider\$credentials, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initECSServices(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Here is the call graph for this function:
|
protected |
create new user
Definition at line 353 of file class.ilAuthProviderECS.php.
References ilAuthUtils\_generateLogin(), ilObject\_writeImportId(), getAbreviation(), getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), ilAuthProvider\getLogger(), ilECSUser\getLogin(), ilObjUser\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 | ) |
Try ecs authentication.
Implements ilAuthProviderInterface.
Definition at line 118 of file class.ilAuthProviderECS.php.
References $server, ilECSServerSettings\ACTIVE_SERVER, ilAuthProvider\getLogger(), getServerSettings(), ilAuthProvider\handleAuthenticationFail(), handleLoginByAuthMode(), setCurrentServer(), and validateHash().
Here is the call graph for this function:| ilAuthProviderECS::getAbreviation | ( | ) |
get abbreviation
Definition at line 72 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 101 of file class.ilAuthProviderECS.php.
References $currentServer.
Referenced by createUser(), handleLogin(), handleLoginByAuthMode(), initRemoteUserWithRemoteId(), resumeCurrentSession(), updateUser(), and validateHash().
Here is the caller graph for this function:| ilAuthProviderECS::getMID | ( | ) |
get mid
Definition at line 80 of file class.ilAuthProviderECS.php.
References $mid.
Referenced by handleLogin(), handleLoginByAuthMode(), and initRemoteUserWithRemoteId().
Here is the caller graph for this function:| ilAuthProviderECS::getServerSettings | ( | ) |
Get server settings.
Definition at line 109 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.
Definition at line 225 of file class.ilAuthProviderECS.php.
References ilObjUser\_lookupId(), ilObject\_lookupObjIdByImportId(), createUser(), getCurrentServer(), ilAuthProvider\getLogger(), getMID(), ILIAS\FileDelivery\http(), and updateUser().
Referenced by handleLoginByAuthMode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Redirects to shibboleth login; to standard login page for LDAP based authentication or authenticates/creates a local account.
Definition at line 143 of file class.ilAuthProviderECS.php.
References ilAuthProvider\$status, ILIAS\Repository\ctrl(), getCurrentServer(), ilAuthProvider\getLogger(), getMID(), ilAuthProvider\handleAuthenticationFail(), handleLogin(), ILIAS\FileDelivery\http(), ilECSParticipantSetting\INCOMING_AUTH_TYPE_LOGIN_PAGE, ilECSParticipantSetting\INCOMING_AUTH_TYPE_SHIBBOLETH, initRemoteUserWithRemoteId(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), resumeCurrentSession(), ilSession\set(), ilAuthStatus\setStatus(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by doAuthentication().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Init ECS Services.
Definition at line 345 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:| ilAuthProviderECS::initRemoteUserWithRemoteId | ( | ) |
Definition at line 253 of file class.ilAuthProviderECS.php.
References getCurrentServer(), getMID(), and ILIAS\FileDelivery\http().
Referenced by handleLoginByAuthMode().
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 447 of file class.ilAuthProviderECS.php.
References ilMailOptions\INCOMING_LOCAL.
Referenced by createUser(), and updateUser().
Here is the caller graph for this function:
|
protected |
Definition at line 199 of file class.ilAuthProviderECS.php.
References ilObjUser\_lookupExternalAccount(), ANONYMOUS_USER_ID, getCurrentServer(), ilAuthProvider\getLogger(), and ILIAS\FileDelivery\http().
Referenced by handleLoginByAuthMode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthProviderECS::setCurrentServer | ( | ilECSSetting | $server | ) |
Set current server.
Definition at line 93 of file class.ilAuthProviderECS.php.
References $server.
Referenced by doAuthentication().
Here is the caller graph for this function:| ilAuthProviderECS::setMID | ( | int | $a_mid | ) |
Definition at line 85 of file class.ilAuthProviderECS.php.
Referenced by validateHash().
Here is the caller graph for this function:
|
protected |
update existing user
Definition at line 412 of file class.ilAuthProviderECS.php.
References 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.
Definition at line 270 of file class.ilAuthProviderECS.php.
References ILIAS\LTI\ToolProvider\$details, Vendor\Package\$e, $res, ilLogLevel\DEBUG, getCurrentServer(), ilECSCommunityReader\getInstanceByServerId(), ilAuthProvider\getLogger(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), 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 40 of file class.ilAuthProviderECS.php.
Referenced by getAbreviation().
|
private |
Definition at line 36 of file class.ilAuthProviderECS.php.
|
private |
Definition at line 30 of file class.ilAuthProviderECS.php.
|
private |
Definition at line 37 of file class.ilAuthProviderECS.php.
|
protected |
Definition at line 42 of file class.ilAuthProviderECS.php.
Referenced by getCurrentServer().
|
private |
Definition at line 35 of file class.ilAuthProviderECS.php.
|
private |
Definition at line 33 of file class.ilAuthProviderECS.php.
|
protected |
Definition at line 39 of file class.ilAuthProviderECS.php.
Referenced by getMID().
|
private |
Definition at line 31 of file class.ilAuthProviderECS.php.
|
private |
Definition at line 34 of file class.ilAuthProviderECS.php.
|
protected |
Definition at line 43 of file class.ilAuthProviderECS.php.
Referenced by getServerSettings().
|
private |
Definition at line 32 of file class.ilAuthProviderECS.php.