ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Auth status implementation. More...
Public Member Functions | |
setStatus ($a_status) | |
Set auth status. More... | |
getStatus () | |
Get status. More... | |
setReason ($a_reason) | |
Set reason. More... | |
setTranslatedReason ($a_reason) | |
Set translated reason. More... | |
getReason () | |
Get reason for authentication success, fail, migration... More... | |
getTranslatedReason () | |
Get translated reason. More... | |
setAuthenticatedUserId ($a_id) | |
getAuthenticatedUserId () | |
Get authenticated user id. More... | |
Static Public Member Functions | |
static | getInstance () |
Get status instance. More... | |
Data Fields | |
const | STATUS_UNDEFINED = 1 |
const | STATUS_AUTHENTICATED = 2 |
const | STATUS_AUTHENTICATION_FAILED = 3 |
const | STATUS_ACCOUNT_MIGRATION_REQUIRED = 4 |
const | STATUS_CODE_ACTIVATION_REQUIRED = 5 |
Protected Member Functions | |
getLogger () | |
Get logger. More... | |
Private Member Functions | |
__construct () | |
Constructor. More... | |
Private Attributes | |
$logger = null | |
$status = self::STATUS_UNDEFINED | |
$reason = '' | |
$translated_reason = '' | |
$auth_user_id = 0 | |
Static Private Attributes | |
static | $instance = null |
Auth status implementation.
Definition at line 11 of file class.ilAuthStatus.php.
|
private |
Constructor.
Definition at line 33 of file class.ilAuthStatus.php.
References ilLoggerFactory\getLogger().
ilAuthStatus::getAuthenticatedUserId | ( | ) |
Get authenticated user id.
Definition at line 125 of file class.ilAuthStatus.php.
References $auth_user_id.
|
static |
Get status instance.
Definition at line 42 of file class.ilAuthStatus.php.
Referenced by ilCronStartUp\authenticate(), ilWebDAVAuthentication\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthUtils\handleForcedAuthentication(), and ilDAVServer\tryAuthentication().
|
protected |
ilAuthStatus::getReason | ( | ) |
Get reason for authentication success, fail, migration...
Definition at line 99 of file class.ilAuthStatus.php.
References $reason.
Referenced by getTranslatedReason().
ilAuthStatus::getStatus | ( | ) |
Get status.
Definition at line 72 of file class.ilAuthStatus.php.
References $status.
ilAuthStatus::getTranslatedReason | ( | ) |
Get translated reason.
Definition at line 107 of file class.ilAuthStatus.php.
References $GLOBALS, $translated_reason, and getReason().
ilAuthStatus::setAuthenticatedUserId | ( | $a_id | ) |
Definition at line 116 of file class.ilAuthStatus.php.
Referenced by ilAuthProviderShibboleth\doAuthentication(), ilAuthProviderCAS\doAuthentication(), ilAuthProviderRadius\doAuthentication(), ilAuthProviderApache\doAuthentication(), ilAuthProviderECS\doAuthentication(), ilAuthProviderCAS\handleLDAPDataSource(), ilAuthProviderApache\handleLDAPDataSource(), ilAuthProviderSaml\handleSamlAuth(), and ilAuthProviderLDAP\updateAccount().
ilAuthStatus::setReason | ( | $a_reason | ) |
Set reason.
string | $a_reason | A laguage key, which can be translated to an end user message |
Definition at line 81 of file class.ilAuthStatus.php.
Referenced by ilAuthProviderShibboleth\doAuthentication(), and ilAuthProvider\handleAuthenticationFail().
ilAuthStatus::setStatus | ( | $a_status | ) |
Set auth status.
int | $a_status |
Definition at line 63 of file class.ilAuthStatus.php.
Referenced by ilAuthProviderShibboleth\doAuthentication(), ilAuthProviderCAS\doAuthentication(), ilAuthProviderRadius\doAuthentication(), ilAuthProviderApache\doAuthentication(), ilAuthProviderECS\doAuthentication(), ilAuthProvider\handleAuthenticationFail(), ilAuthProviderCAS\handleLDAPDataSource(), ilAuthProviderApache\handleLDAPDataSource(), ilAuthProviderSaml\handleSamlAuth(), and ilAuthProviderLDAP\updateAccount().
ilAuthStatus::setTranslatedReason | ( | $a_reason | ) |
Set translated reason.
string | $a_reason |
Definition at line 90 of file class.ilAuthStatus.php.
|
private |
Definition at line 26 of file class.ilAuthStatus.php.
Referenced by getAuthenticatedUserId().
|
staticprivate |
Definition at line 13 of file class.ilAuthStatus.php.
|
private |
Definition at line 15 of file class.ilAuthStatus.php.
Referenced by getLogger().
|
private |
Definition at line 24 of file class.ilAuthStatus.php.
Referenced by getReason().
|
private |
Definition at line 23 of file class.ilAuthStatus.php.
Referenced by getStatus().
|
private |
Definition at line 25 of file class.ilAuthStatus.php.
Referenced by getTranslatedReason().
const ilAuthStatus::STATUS_ACCOUNT_MIGRATION_REQUIRED = 4 |
Definition at line 20 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontendHTTP\authenticate(), ilWebDAVAuthentication\authenticate(), ilAuthFrontend\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthProviderApache\handleLDAPDataSource(), ilAuthProviderSaml\handleSamlAuth(), ilDAVServer\tryAuthentication(), and ilAuthProviderLDAP\updateAccount().
const ilAuthStatus::STATUS_AUTHENTICATED = 2 |
Definition at line 18 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontendHTTP\authenticate(), ilCronStartUp\authenticate(), ilWebDAVAuthentication\authenticate(), ilAuthFrontend\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilAuthProviderShibboleth\doAuthentication(), ilAuthProviderCAS\doAuthentication(), ilAuthProviderRadius\doAuthentication(), ilAuthProviderApache\doAuthentication(), ilAuthProviderECS\doAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthUtils\handleForcedAuthentication(), ilAuthProviderCAS\handleLDAPDataSource(), ilAuthProviderApache\handleLDAPDataSource(), ilAuthProviderSaml\handleSamlAuth(), ilAuthFrontend\migrateAccount(), ilAuthFrontend\migrateAccountNew(), ilDAVServer\tryAuthentication(), and ilAuthProviderLDAP\updateAccount().
const ilAuthStatus::STATUS_AUTHENTICATION_FAILED = 3 |
Definition at line 19 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontendHTTP\authenticate(), ilCronStartUp\authenticate(), ilWebDAVAuthentication\authenticate(), ilAuthFrontend\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilAuthProviderShibboleth\doAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthProvider\handleAuthenticationFail(), ilAuthFrontend\handleAuthenticationSuccess(), ilAuthUtils\handleForcedAuthentication(), and ilDAVServer\tryAuthentication().
const ilAuthStatus::STATUS_CODE_ACTIVATION_REQUIRED = 5 |
Definition at line 21 of file class.ilAuthStatus.php.
Referenced by ilStartUpGUI\doStandardAuthentication(), and ilAuthFrontend\handleAuthenticationSuccess().
const ilAuthStatus::STATUS_UNDEFINED = 1 |
Definition at line 17 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontend\resetStatus().