ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Auth prvider for ecs auth. More...
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... | |
![]() | |
__construct (ilAuthCredentials $credentials) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getCredentials () | |
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... | |
![]() | |
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 $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initECSServices(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
|
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().
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().
ilAuthProviderECS::getAbreviation | ( | ) |
get abbreviation
Definition at line 72 of file class.ilAuthProviderECS.php.
References $abreviation.
Referenced by createUser().
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().
ilAuthProviderECS::getMID | ( | ) |
get mid
Definition at line 80 of file class.ilAuthProviderECS.php.
References $mid.
Referenced by handleLogin(), handleLoginByAuthMode(), and initRemoteUserWithRemoteId().
ilAuthProviderECS::getServerSettings | ( | ) |
Get server settings.
Definition at line 109 of file class.ilAuthProviderECS.php.
References $servers.
Referenced by doAuthentication().
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().
|
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 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\setAuthenticatedUserId(), ilAuthStatus\setStatus(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by doAuthentication().
|
private |
Init ECS Services.
Definition at line 345 of file class.ilAuthProviderECS.php.
References ilECSServerSettings\getInstance().
Referenced by __construct().
ilAuthProviderECS::initRemoteUserWithRemoteId | ( | ) |
Definition at line 253 of file class.ilAuthProviderECS.php.
References getCurrentServer(), getMID(), and ILIAS\FileDelivery\http().
Referenced by handleLoginByAuthMode().
|
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().
|
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().
ilAuthProviderECS::setCurrentServer | ( | ilECSSetting | $server | ) |
Set current server.
Definition at line 93 of file class.ilAuthProviderECS.php.
References $server.
Referenced by doAuthentication().
ilAuthProviderECS::setMID | ( | int | $a_mid | ) |
Definition at line 85 of file class.ilAuthProviderECS.php.
Referenced by validateHash().
|
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().
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().
|
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.