|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Auth status implementation. More...
Collaboration diagram for ilAuthStatus: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().
Here is the call graph for this function:| ilAuthStatus::getAuthenticatedUserId | ( | ) |
Get authenticated user id.
Definition at line 127 of file class.ilAuthStatus.php.
References $auth_user_id.
|
static |
Get status instance.
Definition at line 42 of file class.ilAuthStatus.php.
References $instance.
Referenced by ilCronStartUp\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthUtils\handleForcedAuthentication(), and ilDAVServer\tryAuthentication().
Here is the caller graph for this function:
|
protected |
Get logger.
Definition at line 55 of file class.ilAuthStatus.php.
References $logger.
| ilAuthStatus::getReason | ( | ) |
Get reason for authentication success, fail, migration...
Definition at line 100 of file class.ilAuthStatus.php.
References $reason.
Referenced by getTranslatedReason().
Here is the caller graph for this function:| ilAuthStatus::getStatus | ( | ) |
Get status.
Definition at line 73 of file class.ilAuthStatus.php.
References $status.
| ilAuthStatus::getTranslatedReason | ( | ) |
Get translated reason.
Definition at line 108 of file class.ilAuthStatus.php.
References $GLOBALS, $translated_reason, and getReason().
Here is the call graph for this function:| ilAuthStatus::setAuthenticatedUserId | ( | $a_id | ) |
Definition at line 118 of file class.ilAuthStatus.php.
| ilAuthStatus::setReason | ( | $a_reason | ) |
Set reason.
| string | $a_reason | A laguage key, which can be translated to an end user message |
Definition at line 82 of file class.ilAuthStatus.php.
| ilAuthStatus::setStatus | ( | $a_status | ) |
Set auth status.
| int | $a_status |
Definition at line 64 of file class.ilAuthStatus.php.
Referenced by ilAuthProviderCAS\doAuthentication(), ilAuthProviderRadius\doAuthentication(), and ilAuthProviderECS\doAuthentication().
Here is the caller graph for this function:| ilAuthStatus::setTranslatedReason | ( | $a_reason | ) |
Set translated reason.
| string | $a_reason |
Definition at line 91 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.
Referenced by getInstance().
|
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 ilAuthFrontend\authenticate(), ilAuthFrontendHTTP\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthProviderApache\handleLDAPDataSource(), ilDAVServer\tryAuthentication(), and ilAuthProviderLDAP\updateAccount().
| const ilAuthStatus::STATUS_AUTHENTICATED = 2 |
Definition at line 18 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontend\authenticate(), ilAuthFrontendHTTP\authenticate(), ilCronStartUp\authenticate(), ilAuthProviderApache\createNewAccount(), ilStartUpGUI\doApacheAuthentication(), ilAuthProviderApache\doAuthentication(), ilAuthProviderShibboleth\doAuthentication(), ilAuthProviderCAS\doAuthentication(), ilAuthProviderRadius\doAuthentication(), ilAuthProviderECS\doAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilAuthUtils\handleForcedAuthentication(), ilAuthProviderCAS\handleLDAPDataSource(), ilAuthProviderApache\handleLDAPDataSource(), ilAuthFrontend\migrateAccount(), ilStartUpGUI\migrateAccount2(), ilAuthFrontend\migrateAccountNew(), ilDAVServer\tryAuthentication(), and ilAuthProviderLDAP\updateAccount().
| const ilAuthStatus::STATUS_AUTHENTICATION_FAILED = 3 |
Definition at line 19 of file class.ilAuthStatus.php.
Referenced by ilAuthFrontend\authenticate(), ilAuthFrontendHTTP\authenticate(), ilCronStartUp\authenticate(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), 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().