|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilAuthFrontend:
Collaboration diagram for ilAuthFrontend: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 |
Reimplemented in ilAuthFrontendHTTP.
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().
Here is the call graph for this function:| ilAuthFrontend::authenticate | ( | ) |
Try to authenticate user.
Reimplemented in ilAuthFrontendHTTP.
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.
Here is the call graph for this function:
|
protected |
Check activation.
Definition at line 377 of file class.ilAuthFrontend.php.
References ilObjUser\getActive().
Referenced by handleAuthenticationSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check ip.
Reimplemented in ilAuthFrontendCLI.
Definition at line 416 of file class.ilAuthFrontend.php.
References $_SERVER, ilObjUser\getClientIP(), and ilLoggerFactory\getLogger().
Referenced by handleAuthenticationSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check simultaneous logins.
Definition at line 435 of file class.ilAuthFrontend.php.
References ilObject\getId(), ilObjUser\hasActiveSession(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by handleAuthenticationSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check time limit.
Definition at line 408 of file class.ilAuthFrontend.php.
References ilObjUser\checkTimeLimit().
Referenced by handleAuthenticationSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthFrontend::getAuthSession | ( | ) |
Get auth session.
Definition at line 69 of file class.ilAuthFrontend.php.
References $auth_session.
Referenced by handleAuthenticationSuccess().
Here is the caller graph for this function:| ilAuthFrontend::getCredentials | ( | ) |
Get auth credentials.
Definition at line 77 of file class.ilAuthFrontend.php.
References $credentials.
Referenced by handleAuthenticationFail(), and migrateAccount().
Here is the caller graph for this function:| ilAuthFrontend::getProviders | ( | ) |
Get providers.
Definition at line 86 of file class.ilAuthFrontend.php.
References $providers.
Referenced by authenticate(), ilAuthFrontendHTTP\authenticate(), and migrateAccount().
Here is the caller graph for this function:| ilAuthFrontend::getStatus | ( | ) |
Definition at line 94 of file class.ilAuthFrontend.php.
References $status.
Referenced by authenticate(), ilAuthFrontendHTTP\authenticate(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), migrateAccount(), migrateAccountNew(), and resetStatus().
Here is the caller graph for this function:
|
protected |
Handle account migration.
| ilAuthProvider | $provider |
Definition at line 208 of file class.ilAuthFrontend.php.
References $provider, ANONYMOUS_USER_ID, ilLogLevel\DEBUG, ilSession\dumpToString(), ilAuthProviderAccountMigrationInterface\getExternalAccountName(), getStatus(), ilAuthProviderAccountMigrationInterface\getTriggerAuthMode(), ilAuthProviderAccountMigrationInterface\getUserAuthModeName(), ILIAS\Repository\logger(), and ilSession\set().
Referenced by authenticate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Handle failed authenication.
Reimplemented in ilAuthFrontendHTTP.
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 authenticate(), ilAuthFrontendHTTP\authenticate(), migrateAccount(), and migrateAccountNew().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthFrontend::migrateAccount | ( | ilAuthSession | $session | ) |
Migrate Account to existing user account.
InvalidArgumentException if current auth provider does not support account migration
Definition at line 113 of file class.ilAuthFrontend.php.
References $provider, $session, ilSession\get(), getCredentials(), ilObjectFactory\getInstanceByObjId(), getProviders(), getStatus(), ilAuthSession\getUserId(), handleAuthenticationFail(), handleAuthenticationSuccess(), ILIAS\Repository\logger(), and ilAuthStatus\STATUS_AUTHENTICATED.
Here is the call graph for this function:| 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.
Here is the call graph for this function:| ilAuthFrontend::resetStatus | ( | ) |
Reset status.
Definition at line 102 of file class.ilAuthFrontend.php.
References ANONYMOUS_USER_ID, getStatus(), and ilAuthStatus\STATUS_UNDEFINED.
Referenced by authenticate(), and ilAuthFrontendHTTP\authenticate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), ilAuthFrontendHTTP\__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(), ilAuthFrontendHTTP\__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(), ilAuthFrontendHTTP\__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().