ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
__construct (ilAuthSession $session, ilAuthStatus $status, ilAuthCredentials $credentials, array $providers) | |
getAuthSession () | |
Get auth session. More... | |
getCredentials () | |
Get auth credentials. More... | |
getProviders () | |
Get providers. More... | |
getStatus () | |
resetStatus () | |
Reset status. More... | |
migrateAccount (ilAuthSession $session) | |
Migrate Account to existing user account. More... | |
migrateAccountNew () | |
Create new user account. More... | |
authenticate () | |
Try to authenticate user. More... | |
Data Fields | |
const | MIG_EXTERNAL_ACCOUNT = 'mig_ext_account' |
const | MIG_TRIGGER_AUTHMODE = 'mig_trigger_auth_mode' |
const | MIG_DESIRED_AUTHMODE = 'mig_desired_auth_mode' |
Protected Member Functions | |
handleAccountMigration (ilAuthProviderAccountMigrationInterface $provider) | |
Handle account migration. More... | |
handleAuthenticationSuccess (ilAuthProviderInterface $provider) | |
Handle successful authentication. More... | |
checkActivation (ilObjUser $user) | |
Check activation. More... | |
checkExceededLoginAttempts (ilObjUser $user) | |
checkTimeLimit (ilObjUser $user) | |
Check time limit. More... | |
checkIp (ilObjUser $user) | |
Check ip. More... | |
checkSimultaneousLogins (ilObjUser $user) | |
Check simultaneous logins. More... | |
handleAuthenticationFail () | |
Handle failed authenication. More... | |
Private Attributes | |
ilLogger | $logger |
ilSetting | $settings |
ilLanguage | $lng |
ilAuthCredentials | $credentials |
ilAuthStatus | $status |
array | $providers |
ilAuthSession | $auth_session |
ilAppEventHandler | $ilAppEventHandler |
bool | $authenticated = false |
Definition at line 27 of file class.ilAuthFrontend.php.
ilAuthFrontend::__construct | ( | ilAuthSession | $session, |
ilAuthStatus | $status, | ||
ilAuthCredentials | $credentials, | ||
array | $providers | ||
) |
ilAuthSession | $session | |
ilAuthStatus | $status | |
ilAuthCredentials | $credentials | |
ilAuthProvider[] | $providers |
Definition at line 52 of file class.ilAuthFrontend.php.
References $credentials, $DIC, $providers, $session, $status, ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
ilAuthFrontend::authenticate | ( | ) |
Try to authenticate user.
Definition at line 172 of file class.ilAuthFrontend.php.
References $provider, getProviders(), getStatus(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), ILIAS\Repository\logger(), resetStatus(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Check activation.
Definition at line 377 of file class.ilAuthFrontend.php.
References ilObjUser\getActive().
Referenced by handleAuthenticationSuccess().
|
protected |
Definition at line 382 of file class.ilAuthFrontend.php.
References ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), ANONYMOUS_USER_ID, ilObjUser\getActive(), and ilObject\getId().
Referenced by handleAuthenticationSuccess().
|
protected |
Check ip.
Definition at line 416 of file class.ilAuthFrontend.php.
References $_SERVER, ilObjUser\getClientIP(), and ilLoggerFactory\getLogger().
Referenced by handleAuthenticationSuccess().
|
protected |
Check simultaneous logins.
Definition at line 435 of file class.ilAuthFrontend.php.
References getAuthSession(), ilObject\getId(), ilObjUser\hasActiveSession(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by handleAuthenticationSuccess().
|
protected |
Check time limit.
Definition at line 408 of file class.ilAuthFrontend.php.
References ilObjUser\checkTimeLimit().
Referenced by handleAuthenticationSuccess().
ilAuthFrontend::getAuthSession | ( | ) |
Get auth session.
Definition at line 69 of file class.ilAuthFrontend.php.
References $auth_session.
Referenced by checkSimultaneousLogins(), and handleAuthenticationSuccess().
ilAuthFrontend::getCredentials | ( | ) |
Get auth credentials.
Definition at line 77 of file class.ilAuthFrontend.php.
References $credentials.
Referenced by handleAuthenticationFail(), and migrateAccount().
ilAuthFrontend::getProviders | ( | ) |
Get providers.
Definition at line 86 of file class.ilAuthFrontend.php.
References $providers.
Referenced by ilAuthFrontendHTTP\authenticate(), authenticate(), and migrateAccount().
ilAuthFrontend::getStatus | ( | ) |
Definition at line 94 of file class.ilAuthFrontend.php.
References $status.
Referenced by ilAuthFrontendHTTP\authenticate(), authenticate(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), migrateAccount(), migrateAccountNew(), and resetStatus().
|
protected |
Handle account migration.
ilAuthProvider | $provider |
Definition at line 208 of file class.ilAuthFrontend.php.
References ANONYMOUS_USER_ID, ilLogLevel\DEBUG, ilSession\dumpToString(), ilAuthProviderAccountMigrationInterface\getExternalAccountName(), getStatus(), ilAuthProviderAccountMigrationInterface\getTriggerAuthMode(), ilAuthProviderAccountMigrationInterface\getUserAuthModeName(), ILIAS\Repository\logger(), and ilSession\set().
Referenced by authenticate().
|
protected |
Handle failed authenication.
Definition at line 445 of file class.ilAuthFrontend.php.
References ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), ilObjUser\_incrementLoginAttempts(), ilObjUser\_lookupId(), ilObjUser\_setUserInactive(), ANONYMOUS_USER_ID, getCredentials(), getStatus(), and ILIAS\Repository\logger().
Referenced by authenticate(), migrateAccount(), and migrateAccountNew().
|
protected |
Handle successful authentication.
Definition at line 229 of file class.ilAuthFrontend.php.
References $_SERVER, ilSecuritySettings\_getInstance(), ilObjUser\_lookupLogin(), ilObjForum\_updateOldAccess(), ilOnlineTracking\addUser(), ANONYMOUS_USER_ID, checkActivation(), checkExceededLoginAttempts(), checkIp(), checkSimultaneousLogins(), checkTimeLimit(), ilAuthFactory\CONTEXT_ECS, ilContext\CONTEXT_LTI_PROVIDER, getAuthSession(), ilAuthFactory\getContext(), ilObjectFactory\getInstanceByObjId(), ilLoggerFactory\getLogger(), getStatus(), ilContext\getType(), ilSessionControl\handleLoginEvent(), ilInitialisation\initUserAccount(), ilUserProfile\isProfileIncomplete(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ilAppEventHandler\raise(), ilSession\set(), ILIAS\Repository\settings(), ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilAuthStatus\STATUS_CODE_ACTIVATION_REQUIRED.
Referenced by ilAuthFrontendHTTP\authenticate(), authenticate(), migrateAccount(), and migrateAccountNew().
ilAuthFrontend::migrateAccount | ( | ilAuthSession | $session | ) |
Migrate Account to existing user account.
Definition at line 113 of file class.ilAuthFrontend.php.
References $provider, ilSession\get(), getCredentials(), ilObjectFactory\getInstanceByObjId(), getProviders(), getStatus(), ilAuthSession\getUserId(), handleAuthenticationFail(), handleAuthenticationSuccess(), ilAuthSession\isAuthenticated(), ILIAS\Repository\logger(), and ilAuthStatus\STATUS_AUTHENTICATED.
ilAuthFrontend::migrateAccountNew | ( | ) |
Create new user account.
Definition at line 150 of file class.ilAuthFrontend.php.
References $provider, getStatus(), handleAuthenticationFail(), handleAuthenticationSuccess(), ILIAS\Repository\logger(), and ilAuthStatus\STATUS_AUTHENTICATED.
ilAuthFrontend::resetStatus | ( | ) |
Reset status.
Definition at line 102 of file class.ilAuthFrontend.php.
References ANONYMOUS_USER_ID, getStatus(), and ilAuthStatus\STATUS_UNDEFINED.
Referenced by ilAuthFrontendHTTP\authenticate(), and authenticate().
|
private |
Definition at line 41 of file class.ilAuthFrontend.php.
Referenced by getAuthSession().
|
private |
Definition at line 44 of file class.ilAuthFrontend.php.
|
private |
Definition at line 37 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getCredentials().
|
private |
Definition at line 42 of file class.ilAuthFrontend.php.
|
private |
Definition at line 35 of file class.ilAuthFrontend.php.
|
private |
Definition at line 33 of file class.ilAuthFrontend.php.
|
private |
Definition at line 40 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getProviders().
|
private |
Definition at line 34 of file class.ilAuthFrontend.php.
|
private |
Definition at line 38 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getStatus().
const ilAuthFrontend::MIG_DESIRED_AUTHMODE = 'mig_desired_auth_mode' |
Definition at line 31 of file class.ilAuthFrontend.php.
const ilAuthFrontend::MIG_EXTERNAL_ACCOUNT = 'mig_ext_account' |
Definition at line 29 of file class.ilAuthFrontend.php.
Referenced by ilStartUpGUI\doMigrationNewAccount().
const ilAuthFrontend::MIG_TRIGGER_AUTHMODE = 'mig_trigger_auth_mode' |
Definition at line 30 of file class.ilAuthFrontend.php.
Referenced by ilStartUpGUI\doMigration(), and ilStartUpGUI\doMigrationNewAccount().