phpCAS
version 1.4.0
|
Functions | |
CAS_Client::_setUser ($user) | |
CAS_Client::getUser () | |
CAS_Client::_getUser () | |
CAS_Client::setAttributes ($attributes) | |
CAS_Client::getAttributes () | |
CAS_Client::hasAttributes () | |
CAS_Client::hasAttribute ($key) | |
CAS_Client::_hasAttribute ($key) | |
CAS_Client::getAttribute ($key) | |
CAS_Client::renewAuthentication () | |
CAS_Client::forceAuthentication () | |
CAS_Client::setCacheTimesForAuthRecheck ($n) | |
CAS_Client::checkAuthentication () | |
CAS_Client::isAuthenticated ($renew=false) | |
CAS_Client::isSessionAuthenticated () | |
CAS_Client::_wasPreviouslyAuthenticated () | |
CAS_Client::redirectToCas ($gateway=false, $renew=false) | |
CAS_Client::logout ($params) | |
CAS_Client::_isLogoutRequest () | |
CAS_Client::handleLogoutRequests ($check_client=true, $allowed_clients=array()) | |
Variables | |
CAS_Client::$_user | |
CAS_Client::$_attributes | |
CAS_Client::$_cache_times_for_auth_recheck | |
|
private |
This method returns the CAS user's login name.
Definition at line 1306 of file Client.php.
References CAS_Client\$_user, and phpCAS\error().
Referenced by CAS_Client\getProxiedService(), CAS_Client\getUser(), and CAS_Client\isAuthenticated().
|
private |
Check whether a specific attribute with a name is available
string | $key | name of attribute |
Definition at line 1393 of file Client.php.
Referenced by CAS_Client\getAttribute(), and CAS_Client\hasAttribute().
|
private |
Check of the current request is a logout request
Definition at line 1884 of file Client.php.
Referenced by CAS_Client\__construct(), and CAS_Client\handleLogoutRequests().
|
private |
This method sets the CAS user's login name.
string | $user | the login name of the authenticated user. |
Definition at line 1277 of file Client.php.
Referenced by CAS_Client\_wasPreviouslyAuthenticated(), and CAS_Client\validateSA().
|
private |
This method tells if the user has already been (previously) authenticated by looking into the session variables.
Definition at line 1713 of file Client.php.
References $auth, CAS_Client\_callback(), CAS_Client\_isCallbackMode(), CAS_Client\_rebroadcast(), CAS_Client\_setPGT(), CAS_Client\_setProxies(), CAS_Client\_setUser(), CAS_Client\clearSessionValues(), CAS_Client\getSessionValue(), CAS_Client\hasSessionValue(), CAS_Client\isProxy(), CAS_Client\isSessionAuthenticated(), CAS_Client\setAttributes(), CAS_Client\setTicket(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\isAuthenticated().
CAS_Client::checkAuthentication | ( | ) |
This method is called to check whether the user is authenticated or not.
Definition at line 1495 of file Client.php.
References CAS_Client\getSessionValue(), CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), CAS_Client\removeSessionValue(), CAS_Client\setSessionValue(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CAS_Client::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 1446 of file Client.php.
References CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), CAS_Client\removeSessionValue(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CAS_Client::getAttribute | ( | $key | ) |
Get a specific attribute by name
string | $key | name of attribute |
Definition at line 1406 of file Client.php.
References CAS_Client\_hasAttribute(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::getAttributes | ( | ) |
Get an key values arry of attributes
Definition at line 1344 of file Client.php.
References CAS_Client\$_attributes, CAS_Client\ensureAuthenticationCallSuccessful(), and phpCAS\error().
CAS_Client::getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 1290 of file Client.php.
References CAS_Client\_getUser(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::handleLogoutRequests | ( | $check_client = true , |
|
$allowed_clients = array() |
|||
) |
This method handles logout requests.
bool | $check_client | true to check the client bofore handling the request, false not to perform any access control. True by default. |
array | $allowed_clients | an array of host names allowed to send logout requests. |
Definition at line 1899 of file Client.php.
References CAS_Client\$_signoutCallbackArgs, $client, CAS_Client\_getServerHostname(), CAS_Client\_isLogoutRequest(), CAS_Client\_rebroadcast(), CAS_Client\_sessionIdForTicket(), phpCAS\error(), CAS_Client\getChangeSessionID(), phpCAS\trace(), phpCAS\traceBegin(), phpCAS\traceEnd(), and phpCAS\traceExit().
CAS_Client::hasAttribute | ( | $key | ) |
Check whether a specific attribute with a name is available
string | $key | name of attribute |
Definition at line 1378 of file Client.php.
References CAS_Client\_hasAttribute(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::hasAttributes | ( | ) |
Check whether attributes are available
Definition at line 1364 of file Client.php.
References CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::isAuthenticated | ( | $renew = false | ) |
This method is called to check if the user is authenticated (previously or by tickets given in the URL).
bool | $renew | true to force the authentication with the CAS server |
Definition at line 1552 of file Client.php.
References CAS_Client\_getPGT(), CAS_Client\_getUser(), CAS_Client\_validatePGT(), CAS_Client\_wasPreviouslyAuthenticated(), CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, CAS_Client\getServerVersion(), CAS_Client\getTicket(), CAS_Client\getURL(), CAS_Client\hasTicket(), CAS_Client\isProxy(), CAS_Client\markAuthenticationCall(), CAS_Client\setSessionValue(), phpCAS\trace(), phpCAS\traceBegin(), phpCAS\traceEnd(), phpCAS\traceExit(), and CAS_Client\validateSA().
Referenced by CAS_Client\checkAuthentication(), CAS_Client\forceAuthentication(), and CAS_Client\renewAuthentication().
CAS_Client::isSessionAuthenticated | ( | ) |
This method tells if the current session is authenticated.
Definition at line 1700 of file Client.php.
References CAS_Client\getSessionValue().
Referenced by CAS_Client\__construct(), and CAS_Client\_wasPreviouslyAuthenticated().
CAS_Client::logout | ( | $params | ) |
This method is used to logout from CAS.
array | $params | an array that contains the optional url and service parameters that will be passed to the CAS server |
Definition at line 1845 of file Client.php.
References $cas_url, phpCAS\error(), CAS_Client\getLangObj(), CAS_Client\getServerLogoutURL(), CAS_Client\printHTMLFooter(), CAS_Client\printHTMLHeader(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceExit().
CAS_Client::redirectToCas | ( | $gateway = false , |
|
$renew = false |
|||
) |
This method is used to redirect the client to the CAS server. It is used by CAS_Client::forceAuthentication() and CAS_Client::checkAuthentication().
bool | $gateway | true to check authentication, false to force it |
bool | $renew | true to force the authentication with the CAS server |
Definition at line 1817 of file Client.php.
References $cas_url, CAS_Client\getLangObj(), CAS_Client\getServerLoginURL(), CAS_Client\printHTMLFooter(), CAS_Client\printHTMLHeader(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceExit().
Referenced by CAS_Client\checkAuthentication(), CAS_Client\forceAuthentication(), and CAS_Client\renewAuthentication().
CAS_Client::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 1423 of file Client.php.
References CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), CAS_Client\removeSessionValue(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CAS_Client::setAttributes | ( | $attributes | ) |
Set an array of attributes
array | $attributes | a key value array of attributes |
Definition at line 1334 of file Client.php.
Referenced by CAS_Client\_readExtraAttributesCas20(), and CAS_Client\_wasPreviouslyAuthenticated().
CAS_Client::setCacheTimesForAuthRecheck | ( | $n | ) |
Set the number of times authentication will be cached before rechecked.
int | $n | number of times to wait for a recheck |
Definition at line 1480 of file Client.php.
|
private |
The Authenticated users attributes. Written by CAS_Client::setAttributes(), read by CAS_Client::getAttributes().
Definition at line 1325 of file Client.php.
Referenced by CAS_Client\getAttributes().
|
private |
An integer that gives the number of times authentication will be cached before rechecked.
Definition at line 1471 of file Client.php.
|
private |
The Authenticated user. Written by CAS_Client::_setUser(), read by CAS_Client::getUser().
Definition at line 1268 of file Client.php.
Referenced by CAS_Client\_getUser().