ILIAS
Release_3_10_x_branch Revision 61812
|
Functions | |
CASClient::setUser ($user) | |
This method sets the CAS user's login name. | |
CASClient::getUser () | |
This method returns the CAS user's login name. | |
CASClient::forceAuthentication () | |
This method is called to be sure that the user is authenticated. | |
CASClient::checkAuthentication () | |
This method is called to check whether the ser is authenticated or not. | |
CASClient::isAuthenticated () | |
This method is called to check if the user is authenticated (previously or by tickets given in the URL. | |
CASClient::wasPreviouslyAuthenticated () | |
This method tells if the user has already been (previously) authenticated by looking into the session variables. | |
CASClient::redirectToCas ($gateway) | |
This method is used to redirect the client to the CAS server. | |
CASClient::logout ($url="") | |
This method is used to logout from CAS. |
Variables | |
CASClient::$_user | |
The Authenticated user. |
CASClient::checkAuthentication | ( | ) |
This method is called to check whether the ser is authenticated or not.
Definition at line 603 of file client.php.
References $_SESSION, $res, CASClient\isAuthenticated(), and CASClient\redirectToCas().
CASClient::forceAuthentication | ( | ) |
This method is called to be sure that the user is authenticated.
When not authenticated, halt by redirecting to the CAS server; otherwise return TRUE.
Definition at line 579 of file client.php.
References $_SESSION, $res, CASClient\isAuthenticated(), and CASClient\redirectToCas().
CASClient::getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 565 of file client.php.
References CASClient\$_user.
Referenced by CASClient\isAuthenticated().
CASClient::isAuthenticated | ( | ) |
This method is called to check if the user is authenticated (previously or by tickets given in the URL.
Definition at line 632 of file client.php.
References $_SESSION, $res, CASClient\getPGT(), CASClient\getPT(), CASClient\getST(), CASClient\getUser(), CASClient\hasST(), CASClient\isProxy(), CASClient\validatePGT(), CASClient\validatePT(), and CASClient\wasPreviouslyAuthenticated().
Referenced by CASClient\checkAuthentication(), and CASClient\forceAuthentication().
CASClient::logout | ( | $url = "" | ) |
This method is used to logout from CAS.
$url | a URL that will be transmitted to the CAS server (to come back to when logged out) |
Definition at line 760 of file client.php.
References CAS_STR_LOGOUT, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, CASClient\getServerLogoutURL(), CASClient\getString(), CASClient\printHTMLFooter(), and CASClient\printHTMLHeader().
CASClient::redirectToCas | ( | $gateway | ) |
This method is used to redirect the client to the CAS server.
It is used by CASClient::forceAuthentication() and CASClient::checkAuthentication().
$gateway | true to check authentication, false to force it |
Definition at line 743 of file client.php.
References CAS_STR_AUTHENTICATION_WANTED, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, CASClient\getServerLoginURL(), CASClient\getString(), CASClient\printHTMLFooter(), and CASClient\printHTMLHeader().
Referenced by CASClient\checkAuthentication(), and CASClient\forceAuthentication().
|
private |
This method sets the CAS user's login name.
$user | the login name of the authenticated user. |
Definition at line 553 of file client.php.
References $user.
Referenced by CASClient\validateST(), and CASClient\wasPreviouslyAuthenticated().
|
private |
This method tells if the user has already been (previously) authenticated by looking into the session variables.
Definition at line 686 of file client.php.
References $_SESSION, $auth, CASClient\callback(), CASClient\isCallbackMode(), CASClient\isProxy(), CASClient\setPGT(), CASClient\setPT(), CASClient\setST(), and CASClient\setUser().
Referenced by CASClient\isAuthenticated().
|
private |
The Authenticated user.
Written by CASClient::setUser(), read by CASClient::getUser().
Definition at line 544 of file client.php.
Referenced by CASClient\getUser().