ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class CASAuth. More...
Public Member Functions | |
__construct ($a_params) | |
Constructor public. More... | |
checkCASAuth () | |
check cas autehntication More... | |
forceCASAuth () | |
getCASUser () | |
login () | |
Checks if the current user is authenticated yet public. More... | |
logout () | |
Register variable in a session telling that the user has logged in successfully. More... | |
Additional Inherited Members | |
![]() | |
static | getAdminLoginURL ($returnTo=null) |
Retrieve a admin login URL. More... | |
static | isAdmin () |
Check whether the current user is admin. More... | |
static | requireAdmin () |
Require admin access to the current page. More... | |
ilCASAuth::__construct | ( | $a_params | ) |
Constructor public.
Definition at line 43 of file class.ilCASAuth.php.
References array, CAS_VERSION_2_0, and phpCAS\client().
ilCASAuth::checkCASAuth | ( | ) |
check cas autehntication
can be called before forceAuthentication, but forceAuthentication must be called afterwards
Definition at line 73 of file class.ilCASAuth.php.
ilCASAuth::forceCASAuth | ( | ) |
Definition at line 80 of file class.ilCASAuth.php.
References phpCAS\forceAuthentication().
ilCASAuth::getCASUser | ( | ) |
Definition at line 85 of file class.ilCASAuth.php.
References phpCAS\getUser().
ilCASAuth::login | ( | ) |
Checks if the current user is authenticated yet public.
integer | time in seconds |
bool | add time to current maximum idle time or not |
integer | time in seconds |
bool | add time to current expire time or not |
private
public
private
Definition at line 214 of file class.ilCASAuth.php.
References $ilSetting, ilObjUser\_checkExternalAuthAccount(), ilAuthUtils\_generateLogin(), AUTH_CAS_NO_ILIAS_USER, phpCAS\getUser(), IL_PASSWD_CRYPTED, logout(), and time.
ilCASAuth::logout | ( | ) |
Register variable in a session telling that the user has logged in successfully.
public
string | Username |
This function clears any auth tokens in the currently active session and executes the logout callback function, if any
public
Definition at line 334 of file class.ilCASAuth.php.
Referenced by login().