ILIAS
release_4-3 Revision
|
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::setAttributes ($attributes) | |
CASClient::getAttributes () | |
CASClient::hasAttributes () | |
CASClient::hasAttribute ($key) | |
CASClient::getAttribute ($key) | |
CASClient::renewAuthentication () | |
This method is called to renew the authentication of the user If the user is authenticated, renew the connection If not, redirect to CAS. | |
CASClient::forceAuthentication () | |
This method is called to be sure that the user is authenticated. | |
CASClient::setCacheTimesForAuthRecheck ($n) | |
Set the number of times authentication will be cached before rechecked. | |
CASClient::checkAuthentication () | |
This method is called to check whether the user 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::isSessionAuthenticated () | |
This method tells if the current session is authenticated. | |
CASClient::wasPreviouslyAuthenticated () | |
This method tells if the user has already been (previously) authenticated by looking into the session variables. | |
CASClient::redirectToCas ($gateway=false, $renew=false) | |
This method is used to redirect the client to the CAS server. | |
CASClient::logout ($params) | |
This method is used to logout from CAS. | |
CASClient::isLogoutRequest () | |
CASClient::isLogoutRequestAllowed () | |
CASClient::handleLogoutRequests ($check_client=true, $allowed_clients=false) | |
This method handles logout requests. | |
CASClient::redirectToCas ($gateway) | |
This method is used to redirect the client to the CAS server. |
Variables | |
CASClient::$_user | |
The Authenticated user. | |
CASClient::$_attributes | |
The Authenticated users attributes. | |
CASClient::$_cache_times_for_auth_recheck | |
An integer that gives the number of times authentication will be cached before rechecked. |
CASClient::checkAuthentication | ( | ) |
This method is called to check whether the user is authenticated or not.
Definition at line 924 of file client.php.
References $_SESSION, $res, CASClient\isAuthenticated(), CASClient\redirectToCas(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
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 878 of file client.php.
References $_SESSION, $res, CASClient\isAuthenticated(), CASClient\redirectToCas(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CASClient::getAttribute | ( | $key | ) |
Definition at line 846 of file client.php.
References CASClient\hasAttribute().
CASClient::getAttributes | ( | ) |
Definition at line 833 of file client.php.
References CASClient\$_attributes, and phpCAS\error().
Referenced by CASClient\isAuthenticated().
CASClient::getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 805 of file client.php.
References CASClient\$_user, and phpCAS\error().
Referenced by CASClient\isAuthenticated().
CASClient::handleLogoutRequests | ( | $check_client = true , |
|
$allowed_clients = false |
|||
) |
This method handles logout requests.
$check_client | true to check the client bofore handling the request, false not to perform any access control. True by default. |
$allowed_clients | an array of host names allowed to send logout requests. By default, only the CAs server (declared in the constructor) will be allowed. |
Definition at line 1202 of file client.php.
References $_COOKIE, $_GET, $_POST, $client, phpCAS\error(), exit, CASClient\getServerHostname(), CASClient\isLogoutRequest(), phpCAS\log(), phpCAS\traceBegin(), phpCAS\traceEnd(), and phpCAS\traceExit().
CASClient::hasAttribute | ( | $key | ) |
Definition at line 843 of file client.php.
Referenced by CASClient\getAttribute().
CASClient::hasAttributes | ( | ) |
Definition at line 840 of file client.php.
CASClient::isAuthenticated | ( | ) |
This method is called to check if the user is authenticated (previously or by tickets given in the URL).
Definition at line 981 of file client.php.
References $_SESSION, $res, CASClient\getAttributes(), CASClient\getPGT(), CASClient\getPT(), CASClient\getSA(), CASClient\getST(), CASClient\getURL(), CASClient\getUser(), CASClient\hasPT(), CASClient\hasSA(), CASClient\hasST(), CASClient\isProxy(), phpCAS\log(), phpCAS\trace(), phpCAS\traceBegin(), phpCAS\traceEnd(), CASClient\validatePGT(), CASClient\validatePT(), and CASClient\wasPreviouslyAuthenticated().
Referenced by CASClient\checkAuthentication(), CASClient\forceAuthentication(), and CASClient\renewAuthentication().
|
private |
Definition at line 1183 of file client.php.
References $_POST.
Referenced by CASClient\CASClient(), and CASClient\handleLogoutRequests().
|
private |
CASClient::isSessionAuthenticated | ( | ) |
This method tells if the current session is authenticated.
Definition at line 1057 of file client.php.
References $_SESSION.
Referenced by CASClient\wasPreviouslyAuthenticated().
CASClient::logout | ( | $params | ) |
This method is used to logout from CAS.
$params an array that contains the optional url and service parameters that will be passed to the CAS server
Definition at line 1154 of file client.php.
References CAS_STR_LOGOUT, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, CASClient\getServerLogoutURL(), CASClient\getString(), phpCAS\log(), CASClient\printHTMLFooter(), CASClient\printHTMLHeader(), phpCAS\traceBegin(), and phpCAS\traceExit().
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(), CASClient\printHTMLHeader(), phpCAS\traceBegin(), and phpCAS\traceExit().
CASClient::redirectToCas | ( | $gateway = false , |
|
$renew = false |
|||
) |
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 |
$renew | true to force the authentication with the CAS server |
Definition at line 1133 of file client.php.
References CAS_STR_AUTHENTICATION_WANTED, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, CASClient\getServerLoginURL(), CASClient\getString(), phpCAS\log(), CASClient\printHTMLFooter(), CASClient\printHTMLHeader(), phpCAS\traceBegin(), and phpCAS\traceExit().
Referenced by CASClient\checkAuthentication(), CASClient\forceAuthentication(), and CASClient\renewAuthentication().
CASClient::renewAuthentication | ( | ) |
This method is called to renew the authentication of the user If the user is authenticated, renew the connection If not, redirect to CAS.
Definition at line 858 of file client.php.
References $_SESSION, CASClient\isAuthenticated(), CASClient\redirectToCas(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CASClient::setAttributes | ( | $attributes | ) |
Definition at line 830 of file client.php.
Referenced by CASClient\wasPreviouslyAuthenticated().
CASClient::setCacheTimesForAuthRecheck | ( | $n | ) |
Set the number of times authentication will be cached before rechecked.
$n | an integer. |
Definition at line 914 of file client.php.
References $n.
|
private |
This method sets the CAS user's login name.
$user | the login name of the authenticated user. |
Definition at line 793 of file client.php.
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 1072 of file client.php.
References $_SESSION, $auth, CASClient\callback(), CASClient\isCallbackMode(), CASClient\isProxy(), CASClient\isSessionAuthenticated(), CASClient\setAttributes(), CASClient\setPGT(), CASClient\setPT(), CASClient\setST(), CASClient\setUser(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CASClient\isAuthenticated().
|
private |
The Authenticated users attributes.
Written by CASClient::setAttributes(), read by CASClient::getAttributes().
Definition at line 828 of file client.php.
Referenced by CASClient\getAttributes().
|
private |
An integer that gives the number of times authentication will be cached before rechecked.
Definition at line 905 of file client.php.
|
private |
The Authenticated user.
Written by CASClient::setUser(), read by CASClient::getUser().
Definition at line 784 of file client.php.
Referenced by CASClient\getUser().