|
Moodle
2.2.1
http://www.collinsharper.com
|
|
Functions | |
| getUser () | |
| setAttributes ($attributes) | |
| getAttributes () | |
| hasAttributes () | |
| hasAttribute ($key) | |
| getAttribute ($key) | |
| renewAuthentication () | |
| forceAuthentication () | |
| setCacheTimesForAuthRecheck ($n) | |
| checkAuthentication () | |
| isAuthenticated () | |
| isSessionAuthenticated () | |
| redirectToCas ($gateway=false, $renew=false) | |
| logout ($params) | |
| handleLogoutRequests ($check_client=true, $allowed_clients=false) | |
| checkAuthentication | ( | ) |
This method is called to check whether the user is authenticated or not.
Definition at line 911 of file client.php.

| 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 865 of file client.php.

| getAttribute | ( | $ | key | ) |
| getAttributes | ( | ) |
| getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 792 of file client.php.

| 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 1194 of file client.php.

| hasAttribute | ( | $ | key | ) |
| hasAttributes | ( | ) |
Definition at line 827 of file client.php.
| isAuthenticated | ( | ) |
This method is called to check if the user is authenticated (previously or by tickets given in the URL).
Definition at line 968 of file client.php.


| isSessionAuthenticated | ( | ) |
This method tells if the current session is authenticated.
Definition at line 1049 of file client.php.
| 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 1146 of file client.php.

| 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 1125 of file client.php.


| 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 845 of file client.php.

| setAttributes | ( | $ | attributes | ) |
Definition at line 817 of file client.php.
| setCacheTimesForAuthRecheck | ( | $ | n | ) |
Set the number of times authentication will be cached before rechecked.
| $n | an integer. |
Definition at line 901 of file client.php.