ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Functions | |
CAS_Client::_setUser ($user) | |
This method sets the CAS user's login name. More... | |
CAS_Client::getUser () | |
This method returns the CAS user's login name. More... | |
CAS_Client::_getUser () | |
This method returns the CAS user's login name. More... | |
CAS_Client::setAttributes ($attributes) | |
Set an array of attributes. More... | |
CAS_Client::getAttributes () | |
Get an key values arry of attributes. More... | |
CAS_Client::hasAttributes () | |
Check whether attributes are available. More... | |
CAS_Client::hasAttribute ($key) | |
Check whether a specific attribute with a name is available. More... | |
CAS_Client::_hasAttribute ($key) | |
Check whether a specific attribute with a name is available. More... | |
CAS_Client::getAttribute ($key) | |
Get a specific attribute by name. More... | |
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. More... | |
CAS_Client::forceAuthentication () | |
This method is called to be sure that the user is authenticated. More... | |
CAS_Client::setCacheTimesForAuthRecheck ($n) | |
Set the number of times authentication will be cached before rechecked. More... | |
CAS_Client::checkAuthentication () | |
This method is called to check whether the user is authenticated or not. More... | |
CAS_Client::isAuthenticated ($renew=false) | |
This method is called to check if the user is authenticated (previously or by tickets given in the URL). More... | |
CAS_Client::isSessionAuthenticated () | |
This method tells if the current session is authenticated. More... | |
CAS_Client::_wasPreviouslyAuthenticated () | |
This method tells if the user has already been (previously) authenticated by looking into the session variables. More... | |
CAS_Client::redirectToCas ($gateway=false, $renew=false) | |
This method is used to redirect the client to the CAS server. More... | |
CAS_Client::logout ($params) | |
This method is used to logout from CAS. More... | |
CAS_Client::_isLogoutRequest () | |
Check of the current request is a logout request. More... | |
CAS_Client::handleLogoutRequests ($check_client=true, $allowed_clients=false) | |
This method handles logout requests. More... | |
Variables | |
CAS_Client::$_user | |
The Authenticated user. More... | |
CAS_Client::$_attributes | |
The Authenticated users attributes. More... | |
CAS_Client::$_cache_times_for_auth_recheck | |
An integer that gives the number of times authentication will be cached before rechecked. More... | |
|
private |
This method returns the CAS user's login name.
Definition at line 1150 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 1237 of file Client.php.
References $key.
Referenced by CAS_Client\getAttribute(), and CAS_Client\hasAttribute().
|
private |
Check of the current request is a logout request.
Definition at line 1749 of file Client.php.
References $_POST.
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 1121 of file Client.php.
References $user.
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 1578 of file Client.php.
References $_POST, $_SESSION, $auth, CAS_Client\_callback(), CAS_Client\_isCallbackMode(), CAS_Client\_rebroadcast(), CAS_Client\_setPGT(), CAS_Client\_setProxies(), CAS_Client\_setUser(), 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 1344 of file Client.php.
References $_SESSION, $res, CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), 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 1292 of file Client.php.
References $_SESSION, $res, CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), 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 1250 of file Client.php.
References $key, CAS_Client\_hasAttribute(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::getAttributes | ( | ) |
Get an key values arry of attributes.
Definition at line 1188 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 1134 of file Client.php.
References CAS_Client\_getUser(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::handleLogoutRequests | ( | $check_client = true , |
|
$allowed_clients = false |
|||
) |
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. |
bool | $allowed_clients | an array of host names allowed to send logout requests. |
Definition at line 1764 of file Client.php.
References $_COOKIE, $_GET, $_POST, $_SERVER, CAS_Client\$_signoutCallbackArgs, $client, CAS_Client\_getServerHostname(), CAS_Client\_isLogoutRequest(), CAS_Client\_rebroadcast(), 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 1222 of file Client.php.
References $key, CAS_Client\_hasAttribute(), and CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::hasAttributes | ( | ) |
Check whether attributes are available.
Definition at line 1208 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 1405 of file Client.php.
References $_SESSION, $res, 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(), phpCAS\trace(), phpCAS\traceBegin(), phpCAS\traceEnd(), phpCAS\traceExit(), user(), 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 1565 of file Client.php.
References $_SESSION.
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 1710 of file Client.php.
References $lang, PHPMailer\PHPMailer\$params, 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 1682 of file Client.php.
References $lang, 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 1267 of file Client.php.
References $_SESSION, $res, CAS_Client\isAuthenticated(), CAS_Client\redirectToCas(), 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 1178 of file Client.php.
References $attributes.
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 1328 of file Client.php.
References $n.
|
private |
The Authenticated users attributes.
Written by CAS_Client::setAttributes(), read by CAS_Client::getAttributes().
Definition at line 1169 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 1319 of file Client.php.
|
private |
The Authenticated user.
Written by CAS_Client::_setUser(), read by CAS_Client::getUser().
Definition at line 1112 of file Client.php.
Referenced by CAS_Client\_getUser().