|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Description of class class. More...
Inheritance diagram for ilAuthFrontend:
Collaboration diagram for ilAuthFrontend:Public Member Functions | |
| __construct (ilAuthSession $session, ilAuthStatus $status, ilAuthCredentials $credentials, array $providers) | |
| Constructor. More... | |
| getAuthSession () | |
| Get auth session. More... | |
| getCredentials () | |
| Get auth credentials. More... | |
| getProviders () | |
| Get providers. More... | |
| getStatus () | |
| resetStatus () | |
| Reset status. More... | |
| getLogger () | |
| Get logger. 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 | |
| $logger = null | |
| $credentials = null | |
| $status = null | |
| $providers = array() | |
| $auth_session = null | |
| $authenticated = false | |
Description of class class.
Definition at line 11 of file class.ilAuthFrontend.php.
| ilAuthFrontend::__construct | ( | ilAuthSession | $session, |
| ilAuthStatus | $status, | ||
| ilAuthCredentials | $credentials, | ||
| array | $providers | ||
| ) |
Constructor.
| ilAuthSession | $session | |
| ilAuthCredentials | $credentials |
Definition at line 30 of file class.ilAuthFrontend.php.
References $credentials, $providers, $session, $status, and ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilAuthFrontend::authenticate | ( | ) |
Try to authenticate user.
Reimplemented in ilAuthFrontendHTTP.
Definition at line 166 of file class.ilAuthFrontend.php.
References getLogger(), getProviders(), getStatus(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), 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.
| ilObjUser | $user |
Definition at line 372 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 |
| \ilObjUser | $user |
Definition at line 381 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.
Definition at line 418 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.
| ilObjUser | $user |
Definition at line 439 of file class.ilAuthFrontend.php.
References $GLOBALS, ilObject\getId(), getLogger(), and ilObjUser\hasActiveSession().
Referenced by handleAuthenticationSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check time limit.
| ilObjUser | $user |
Definition at line 410 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 44 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 53 of file class.ilAuthFrontend.php.
References $credentials.
Referenced by handleAuthenticationFail(), and migrateAccount().
Here is the caller graph for this function:| ilAuthFrontend::getLogger | ( | ) |
Get logger.
Definition at line 89 of file class.ilAuthFrontend.php.
References $logger.
Referenced by authenticate(), ilAuthFrontendHTTP\authenticate(), checkSimultaneousLogins(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), and migrateAccount().
Here is the caller graph for this function:| ilAuthFrontend::getProviders | ( | ) |
Get providers.
Definition at line 62 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 70 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 198 of file class.ilAuthFrontend.php.
References $_SESSION, ANONYMOUS_USER_ID, ilLogLevel\DEBUG, ilAuthProviderAccountMigrationInterface\getExternalAccountName(), getLogger(), getStatus(), ilAuthProviderAccountMigrationInterface\getTriggerAuthMode(), ilAuthProviderAccountMigrationInterface\getUserAuthModeName(), 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 454 of file class.ilAuthFrontend.php.
References ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), ilObjUser\_incrementLoginAttempts(), ilObjUser\_lookupId(), ilObjUser\_setUserInactive(), ANONYMOUS_USER_ID, getCredentials(), getLogger(), and getStatus().
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.
| ilAuthProviderInterface | $provider |
Definition at line 220 of file class.ilAuthFrontend.php.
References $_SERVER, $DIC, $factory, $GLOBALS, ilSecuritySettings\_getInstance(), ilObjUser\_lookupLogin(), ilObjUser\_resetLoginAttempts(), ilObjForum\_updateOldAccess(), ANONYMOUS_USER_ID, checkActivation(), checkExceededLoginAttempts(), checkIp(), checkSimultaneousLogins(), checkTimeLimit(), ilAuthFactory\CONTEXT_ECS, ilContext\CONTEXT_LTI_PROVIDER, getAuthSession(), ilAuthFactory\getContext(), ilLoggerFactory\getLogger(), getLogger(), getStatus(), ilContext\getType(), ilSessionControl\handleLoginEvent(), ilInitialisation\initUserAccount(), ilUserProfile\isProfileIncomplete(), language(), ilSession\set(), 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.
| ilAuthSession | $session | |
| type | $a_username | |
| type | $a_auth_mode | |
| type | $a_desired_authmode |
InvalidArgumentException if current auth provider does not support account migration
Definition at line 102 of file class.ilAuthFrontend.php.
References $session, ilSession\get(), getCredentials(), getLogger(), getProviders(), getStatus(), ilAuthSession\getUserId(), handleAuthenticationFail(), handleAuthenticationSuccess(), and ilAuthStatus\STATUS_AUTHENTICATED.
Here is the call graph for this function:| ilAuthFrontend::migrateAccountNew | ( | ) |
Create new user account.
Definition at line 143 of file class.ilAuthFrontend.php.
References getStatus(), handleAuthenticationFail(), handleAuthenticationSuccess(), and ilAuthStatus\STATUS_AUTHENTICATED.
Here is the call graph for this function:| ilAuthFrontend::resetStatus | ( | ) |
Reset status.
Definition at line 78 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 21 of file class.ilAuthFrontend.php.
Referenced by getAuthSession().
|
private |
Definition at line 23 of file class.ilAuthFrontend.php.
|
private |
Definition at line 18 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getCredentials().
|
private |
Definition at line 17 of file class.ilAuthFrontend.php.
Referenced by getLogger().
|
private |
Definition at line 20 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getProviders().
|
private |
Definition at line 19 of file class.ilAuthFrontend.php.
Referenced by __construct(), and getStatus().
| const ilAuthFrontend::MIG_DESIRED_AUTHMODE = 'mig_desired_auth_mode' |
Definition at line 15 of file class.ilAuthFrontend.php.
| const ilAuthFrontend::MIG_EXTERNAL_ACCOUNT = 'mig_ext_account' |
Definition at line 13 of file class.ilAuthFrontend.php.
Referenced by ilStartUpGUI\doMigrationNewAccount().
| const ilAuthFrontend::MIG_TRIGGER_AUTHMODE = 'mig_trigger_auth_mode' |
Definition at line 14 of file class.ilAuthFrontend.php.
Referenced by ilStartUpGUI\doMigration(), and ilStartUpGUI\doMigrationNewAccount().