ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Description of class class. More...
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().
ilAuthFrontend::authenticate | ( | ) |
Try to authenticate user.
Definition at line 166 of file class.ilAuthFrontend.php.
References League\OAuth2\Client\Provider\$provider, getLogger(), getProviders(), getStatus(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), resetStatus(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Check activation.
ilObjUser | $user |
Definition at line 370 of file class.ilAuthFrontend.php.
References ilObjUser\getActive().
Referenced by handleAuthenticationSuccess().
|
protected |
\ilObjUser | $user |
Definition at line 379 of file class.ilAuthFrontend.php.
References ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), array, ilObjUser\getActive(), and ilObject\getId().
Referenced by handleAuthenticationSuccess().
|
protected |
Check ip.
Definition at line 416 of file class.ilAuthFrontend.php.
References $_SERVER, array, ilObjUser\getClientIP(), and ilLoggerFactory\getLogger().
Referenced by handleAuthenticationSuccess().
|
protected |
Check simultaneous logins.
ilObjUser | $user |
Definition at line 437 of file class.ilAuthFrontend.php.
References $GLOBALS, getAuthSession(), ilObject\getId(), getLogger(), and ilObjUser\hasActiveSession().
Referenced by handleAuthenticationSuccess().
|
protected |
Check time limit.
ilObjUser | $user |
Definition at line 408 of file class.ilAuthFrontend.php.
References ilObjUser\checkTimeLimit().
Referenced by handleAuthenticationSuccess().
ilAuthFrontend::getAuthSession | ( | ) |
Get auth session.
Definition at line 44 of file class.ilAuthFrontend.php.
References $auth_session.
Referenced by checkSimultaneousLogins(), and handleAuthenticationSuccess().
ilAuthFrontend::getCredentials | ( | ) |
Get auth credentials.
Definition at line 53 of file class.ilAuthFrontend.php.
References $credentials.
Referenced by handleAuthenticationFail(), and migrateAccount().
ilAuthFrontend::getLogger | ( | ) |
Get logger.
Definition at line 89 of file class.ilAuthFrontend.php.
References $logger.
Referenced by ilAuthFrontendHTTP\authenticate(), authenticate(), checkSimultaneousLogins(), handleAccountMigration(), handleAuthenticationFail(), handleAuthenticationSuccess(), and migrateAccount().
ilAuthFrontend::getProviders | ( | ) |
Get providers.
Definition at line 62 of file class.ilAuthFrontend.php.
References $providers.
Referenced by ilAuthFrontendHTTP\authenticate(), authenticate(), and migrateAccount().
ilAuthFrontend::getStatus | ( | ) |
Definition at line 70 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 198 of file class.ilAuthFrontend.php.
References $_SESSION, ilLogLevel\DEBUG, ilAuthProviderAccountMigrationInterface\getExternalAccountName(), getLogger(), getStatus(), ilAuthProviderAccountMigrationInterface\getTriggerAuthMode(), ilAuthProviderAccountMigrationInterface\getUserAuthModeName(), and ilSession\set().
Referenced by authenticate().
|
protected |
Handle failed authenication.
Definition at line 452 of file class.ilAuthFrontend.php.
References ilSecuritySettings\_getInstance(), ilObjUser\_getLoginAttempts(), ilObjUser\_incrementLoginAttempts(), ilObjUser\_lookupId(), ilObjUser\_setUserInactive(), array, getCredentials(), getLogger(), and getStatus().
Referenced by authenticate(), migrateAccount(), and migrateAccountNew().
|
protected |
Handle successful authentication.
ilAuthProviderInterface | $provider |
Definition at line 220 of file class.ilAuthFrontend.php.
References $_SERVER, $factory, $GLOBALS, ilSecuritySettings\_getInstance(), ilObjUser\_lookupLogin(), ilObjUser\_resetLoginAttempts(), ilObjForum\_updateOldAccess(), array, checkActivation(), checkExceededLoginAttempts(), checkIp(), checkSimultaneousLogins(), checkTimeLimit(), ilAuthFactory\CONTEXT_ECS, ilContext\CONTEXT_LTI_PROVIDER, getAuthSession(), ilAuthFactory\getContext(), ilLoggerFactory\getLogger(), getLogger(), getStatus(), ilContext\getType(), ilSessionControl\handleLoginEvent(), ilUserProfile\isProfileIncomplete(), ilSession\set(), 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.
ilAuthSession | $session | |
type | $a_username | |
type | $a_auth_mode | |
type | $a_desired_authmode |
Definition at line 102 of file class.ilAuthFrontend.php.
References League\OAuth2\Client\Provider\$provider, ilSession\get(), getCredentials(), getLogger(), getProviders(), getStatus(), ilAuthSession\getUserId(), handleAuthenticationFail(), handleAuthenticationSuccess(), ilAuthSession\isAuthenticated(), and ilAuthStatus\STATUS_AUTHENTICATED.
ilAuthFrontend::migrateAccountNew | ( | ) |
Create new user account.
Definition at line 143 of file class.ilAuthFrontend.php.
References League\OAuth2\Client\Provider\$provider, getStatus(), handleAuthenticationFail(), handleAuthenticationSuccess(), and ilAuthStatus\STATUS_AUTHENTICATED.
ilAuthFrontend::resetStatus | ( | ) |
Reset status.
Definition at line 78 of file class.ilAuthFrontend.php.
References getStatus(), and ilAuthStatus\STATUS_UNDEFINED.
Referenced by ilAuthFrontendHTTP\authenticate(), and authenticate().
|
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().