|
ILIAS
Release_3_10_x_branch Revision 61812
|
The CASClient class is a client interface that provides CAS authentication to PHP applications. More...
Collaboration diagram for CASClient:Public Member Functions | |
| setHTMLHeader ($header) | |
| This method set the HTML header used for all outputs. | |
| setHTMLFooter ($footer) | |
| This method set the HTML footer used for all outputs. | |
| setLang ($lang) | |
| This method is used to set the language used by phpCAS. | |
| CASClient ($server_version, $proxy, $server_hostname, $server_port, $server_uri, $start_session=true) | |
| CASClient constructor. | |
| getUser () | |
| This method returns the CAS user's login name. | |
| forceAuthentication () | |
| This method is called to be sure that the user is authenticated. | |
| checkAuthentication () | |
| This method is called to check whether the ser is authenticated or not. | |
| isAuthenticated () | |
| This method is called to check if the user is authenticated (previously or by tickets given in the URL. | |
| redirectToCas ($gateway) | |
| This method is used to redirect the client to the CAS server. | |
| logout ($url="") | |
| This method is used to logout from CAS. | |
| setPGTStorageFile ($format='', $path='') | |
| This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem. | |
| setPGTStorageDB ($user, $password, $database_type, $hostname, $port, $database, $table) | |
| This method is used to tell phpCAS to store the response of the CAS server to PGT requests into a database. | |
| serviceWeb ($url, &$err_code, &$output) | |
| This method is used to access an HTTP[S] service. | |
| serviceMail ($url, $flags, &$err_code, &$err_msg, &$pt) | |
| This method is used to access an IMAP/POP3/NNTP service. | |
| setHTMLHeader ($header) | |
| This method set the HTML header used for all outputs. | |
| setHTMLFooter ($footer) | |
| This method set the HTML footer used for all outputs. | |
| setLang ($lang) | |
| This method is used to set the language used by phpCAS. | |
| CASClient ($server_version, $proxy, $server_hostname, $server_port, $server_uri, $start_session=true) | |
| CASClient constructor. | |
| getUser () | |
| This method returns the CAS user's login name. | |
| forceAuthentication () | |
| This method is called to be sure that the user is authenticated. | |
| checkAuthentication () | |
| This method is called to check whether the ser is authenticated or not. | |
| isAuthenticated () | |
| This method is called to check if the user is authenticated (previously or by tickets given in the URL. | |
| redirectToCas ($gateway) | |
| This method is used to redirect the client to the CAS server. | |
| logout ($url="") | |
| This method is used to logout from CAS. | |
| setPGTStorageFile ($format='', $path='') | |
| This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem. | |
| setPGTStorageDB ($user, $password, $database_type, $hostname, $port, $database, $table) | |
| This method is used to tell phpCAS to store the response of the CAS server to PGT requests into a database. | |
| serviceWeb ($url, &$err_code, &$output) | |
| This method is used to access an HTTP[S] service. | |
| serviceMail ($url, $flags, &$err_code, &$err_msg, &$pt) | |
| This method is used to access an IMAP/POP3/NNTP service. | |
Private Member Functions | |
| HTMLFilterOutput ($str) | |
| This method filters a string by replacing special tokens by appropriate values and prints it. | |
| printHTMLHeader ($title) | |
| This method prints the header of the HTML output (after filtering). | |
| printHTMLFooter () | |
| This method prints the footer of the HTML output (after filtering). | |
| getLang () | |
| This method returns the language used by phpCAS. | |
| getString ($str) | |
| This method returns a string depending on the language. | |
| getServerVersion () | |
| This method is used to retrieve the version of the CAS server. | |
| getServerHostname () | |
| This method is used to retrieve the hostname of the CAS server. | |
| getServerPort () | |
| This method is used to retrieve the port of the CAS server. | |
| getServerURI () | |
| This method is used to retrieve the URI of the CAS server. | |
| getServerBaseURL () | |
| This method is used to retrieve the base URL of the CAS server. | |
| getServerLoginURL ($gateway) | |
| This method is used to retrieve the login URL of the CAS server. | |
| getServerServiceValidateURL () | |
| This method is used to retrieve the service validating URL of the CAS server. | |
| getServerProxyValidateURL () | |
| This method is used to retrieve the proxy validating URL of the CAS server. | |
| getServerProxyURL () | |
| This method is used to retrieve the proxy URL of the CAS server. | |
| getServerLogoutURL () | |
| This method is used to retrieve the logout URL of the CAS server. | |
| setUser ($user) | |
| This method sets the CAS user's login name. | |
| wasPreviouslyAuthenticated () | |
| This method tells if the user has already been (previously) authenticated by looking into the session variables. | |
| getST () | |
| This method returns the Service Ticket provided in the URL of the request. | |
| setST ($st) | |
| This method stores the Service Ticket. | |
| hasST () | |
| This method tells if a Service Ticket was stored. | |
| validateST ($validate_url, &$text_response, &$tree_response) | |
| This method is used to validate a ST; halt on failure, and sets $validate_url, $text_reponse and $tree_response on success. | |
| isProxy () | |
| Tells if a CAS client is a CAS proxy or not. | |
| getPGT () | |
| This method returns the Proxy Granting Ticket given by the CAS server. | |
| setPGT ($pgt) | |
| This method stores the Proxy Granting Ticket. | |
| hasPGT () | |
| This method tells if a Proxy Granting Ticket was stored. | |
| setCallbackMode ($callback_mode) | |
| This method sets/unsets callback mode. | |
| isCallbackMode () | |
| This method returns TRUE when the CAs client is running i callback mode, FALSE otherwise. | |
| getCallbackURL () | |
| This method returns the URL that should be used for the PGT callback (in fact the URL of the current request without any CGI parameter, except if phpCAS::setFixedCallbackURL() was used). | |
| setCallbackURL ($url) | |
| This method sets the callback url. | |
| callback () | |
| This method is called by CASClient::CASClient() when running in callback mode. | |
| initPGTStorage () | |
| This method is used to initialize the storage of PGT's. | |
| storePGT ($pgt, $pgt_iou) | |
| This method stores a PGT. | |
| loadPGT ($pgt_iou) | |
| This method reads a PGT from its Iou and deletes the corresponding storage entry. | |
| validatePGT (&$validate_url, $text_response, $tree_response) | |
| This method is used to validate a PGT; halt on failure. | |
| retrievePT ($target_service, &$err_code, &$err_msg) | |
| This method is used to retrieve PT's from the CAS server thanks to a PGT. | |
| readURL ($url, $cookies, &$headers, &$body, &$err_msg) | |
| This method is used to acces a remote URL. | |
| getPT () | |
| This method returns the Proxy Ticket provided in the URL of the request. | |
| setPT ($pt) | |
| This method stores the Proxy Ticket. | |
| hasPT () | |
| This method tells if a Proxy Ticket was stored. | |
| validatePT (&$validate_url, &$text_response, &$tree_response) | |
| This method is used to validate a PT; halt on failure. | |
| getURL () | |
| This method returns the URL of the current request (without any ticket CGI parameter). | |
| setURL ($url) | |
| This method sets the URL of the current request. | |
| authError ($failure, $cas_url, $no_response, $bad_response='', $cas_response='', $err_code='', $err_msg='') | |
| This method is used to print the HTML output when the user was not authenticated. | |
| HTMLFilterOutput ($str) | |
| This method filters a string by replacing special tokens by appropriate values and prints it. | |
| printHTMLHeader ($title) | |
| This method prints the header of the HTML output (after filtering). | |
| printHTMLFooter () | |
| This method prints the footer of the HTML output (after filtering). | |
| getLang () | |
| This method returns the language used by phpCAS. | |
| getString ($str) | |
| This method returns a string depending on the language. | |
| getServerVersion () | |
| This method is used to retrieve the version of the CAS server. | |
| getServerHostname () | |
| This method is used to retrieve the hostname of the CAS server. | |
| getServerPort () | |
| This method is used to retrieve the port of the CAS server. | |
| getServerURI () | |
| This method is used to retrieve the URI of the CAS server. | |
| getServerBaseURL () | |
| This method is used to retrieve the base URL of the CAS server. | |
| getServerLoginURL ($gateway) | |
| This method is used to retrieve the login URL of the CAS server. | |
| getServerServiceValidateURL () | |
| This method is used to retrieve the service validating URL of the CAS server. | |
| getServerProxyValidateURL () | |
| This method is used to retrieve the proxy validating URL of the CAS server. | |
| getServerProxyURL () | |
| This method is used to retrieve the proxy URL of the CAS server. | |
| getServerLogoutURL () | |
| This method is used to retrieve the logout URL of the CAS server. | |
| setUser ($user) | |
| This method sets the CAS user's login name. | |
| wasPreviouslyAuthenticated () | |
| This method tells if the user has already been (previously) authenticated by looking into the session variables. | |
| getST () | |
| This method returns the Service Ticket provided in the URL of the request. | |
| setST ($st) | |
| This method stores the Service Ticket. | |
| hasST () | |
| This method tells if a Service Ticket was stored. | |
| validateST ($validate_url, &$text_response, &$tree_response) | |
| This method is used to validate a ST; halt on failure, and sets $validate_url, $text_reponse and $tree_response on success. | |
| isProxy () | |
| Tells if a CAS client is a CAS proxy or not. | |
| getPGT () | |
| This method returns the Proxy Granting Ticket given by the CAS server. | |
| setPGT ($pgt) | |
| This method stores the Proxy Granting Ticket. | |
| hasPGT () | |
| This method tells if a Proxy Granting Ticket was stored. | |
| setCallbackMode ($callback_mode) | |
| This method sets/unsets callback mode. | |
| isCallbackMode () | |
| This method returns TRUE when the CAs client is running i callback mode, FALSE otherwise. | |
| getCallbackURL () | |
| This method returns the URL that should be used for the PGT callback (in fact the URL of the current request without any CGI parameter, except if phpCAS::setFixedCallbackURL() was used). | |
| setCallbackURL ($url) | |
| This method sets the callback url. | |
| callback () | |
| This method is called by CASClient::CASClient() when running in callback mode. | |
| initPGTStorage () | |
| This method is used to initialize the storage of PGT's. | |
| storePGT ($pgt, $pgt_iou) | |
| This method stores a PGT. | |
| loadPGT ($pgt_iou) | |
| This method reads a PGT from its Iou and deletes the corresponding storage entry. | |
| validatePGT (&$validate_url, $text_response, $tree_response) | |
| This method is used to validate a PGT; halt on failure. | |
| retrievePT ($target_service, &$err_code, &$err_msg) | |
| This method is used to retrieve PT's from the CAS server thanks to a PGT. | |
| readURL ($url, $cookies, &$headers, &$body, &$err_msg) | |
| This method is used to acces a remote URL. | |
| getPT () | |
| This method returns the Proxy Ticket provided in the URL of the request. | |
| setPT ($pt) | |
| This method stores the Proxy Ticket. | |
| hasPT () | |
| This method tells if a Proxy Ticket was stored. | |
| validatePT (&$validate_url, &$text_response, &$tree_response) | |
| This method is used to validate a PT; halt on failure. | |
| getURL () | |
| This method returns the URL of the current request (without any ticket CGI parameter). | |
| setURL ($url) | |
| This method sets the URL of the current request. | |
| authError ($failure, $cas_url, $no_response, $bad_response='', $cas_response='', $err_code='', $err_msg='') | |
| This method is used to print the HTML output when the user was not authenticated. | |
Private Attributes | |
| $_output_header | |
| A string used to print the header of HTML pages. | |
| $_output_footer | |
| A string used to print the footer of HTML pages. | |
| $_lang | |
| A string corresponding to the language used by phpCAS. | |
| $_strings | |
| array containing the strings used by phpCAS. | |
| $_server | |
| a record to store information about the CAS server. | |
| $_user | |
| The Authenticated user. | |
| $_st | |
| the Service Ticket provided in the URL of the request if present (empty otherwise). | |
| $_proxy | |
| A boolean telling if the client is a CAS proxy or not. | |
| $_pgt | |
| the Proxy Grnting Ticket given by the CAS server (empty otherwise). | |
| $_callback_mode | |
| each PHP script using phpCAS in proxy mode is its own callback to get the PGT back from the CAS server. | |
| $_callback_url | |
| the URL that should be used for the PGT callback (in fact the URL of the current request without any CGI parameter). | |
| $_pgt_storage | |
| an instance of a class inheriting of PGTStorage, used to deal with PGT storage. | |
| $_pt | |
| the Proxy Ticket provided in the URL of the request if present (empty otherwise). | |
| $_url | |
| the URL of the current request (without any ticket CGI parameter). | |
The CASClient class is a client interface that provides CAS authentication to PHP applications.
Definition at line 22 of file client.php.
|
private |
This method is used to print the HTML output when the user was not authenticated.
| $failure | the failure that occured |
| $cas_url | the URL the CAS server was asked for |
| $no_response | the response from the CAS server (other parameters are ignored if TRUE) |
| $bad_response | bad response from the CAS server ($err_code and $err_msg ignored if TRUE) |
| $cas_response | the response of the CAS server |
| $err_code | the error code given by the CAS server |
| $err_msg | the error message given by the CAS server |
Definition at line 1927 of file client4.php.
References $failure, CAS_STR_AUTHENTICATION_FAILED, CAS_STR_YOU_WERE_NOT_AUTHENTICATED, CAS_VERSION_1_0, CAS_VERSION_2_0, and exit.
|
private |
This method is called by CASClient::CASClient() when running in callback mode.
It stores the PGT and its PGT Iou, prints its output and halts.
Definition at line 1169 of file client4.php.
References $_GET.
| CASClient::CASClient | ( | $server_version, | |
| $proxy, | |||
| $server_hostname, | |||
| $server_port, | |||
| $server_uri, | |||
$start_session = true |
|||
| ) |
CASClient constructor.
| $server_version | the version of the CAS server |
| $proxy | TRUE if the CAS client is a CAS proxy, FALSE otherwise |
| $server_hostname | the hostname of the CAS server |
| $server_port | the port the CAS server is running on |
| $server_uri | the URI the CAS server is responding on |
| $start_session | Have phpCAS start PHP sessions (default true) |
Definition at line 444 of file client4.php.
References $_GET, CAS_VERSION_1_0, CAS_VERSION_2_0, isCallbackMode(), isProxy(), and setCallbackMode().
Here is the call graph for this function:| CASClient::checkAuthentication | ( | ) |
This method is called to check whether the ser is authenticated or not.
Definition at line 612 of file client4.php.
References $_SESSION, $res, isAuthenticated(), and redirectToCas().
Here is the call graph for this function:| 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 588 of file client4.php.
References $_SESSION, $res, isAuthenticated(), and redirectToCas().
Here is the call graph for this function:
|
private |
This method returns the URL that should be used for the PGT callback (in fact the URL of the current request without any CGI parameter, except if phpCAS::setFixedCallbackURL() was used).
Definition at line 1116 of file client4.php.
References $request_uri.
|
private |
This method returns the language used by phpCAS.
Definition at line 178 of file client4.php.
References $_lang, PHPCAS_LANG_DEFAULT, and setLang().
Here is the call graph for this function:
|
private |
This method returns the Proxy Granting Ticket given by the CAS server.
Definition at line 1029 of file client4.php.
|
private |
This method returns the Proxy Ticket provided in the URL of the request.
Definition at line 1705 of file client4.php.
|
private |
This method is used to retrieve the base URL of the CAS server.
Definition at line 315 of file client4.php.
|
private |
This method is used to retrieve the hostname of the CAS server.
Definition at line 291 of file client4.php.
|
private |
This method is used to retrieve the login URL of the CAS server.
| $gateway | true to check authentication, false to force it |
Definition at line 334 of file client4.php.
References getServerBaseURL(), and getURL().
Here is the call graph for this function:
|
private |
This method is used to retrieve the logout URL of the CAS server.
Definition at line 418 of file client4.php.
References getServerBaseURL().
Here is the call graph for this function:
|
private |
This method is used to retrieve the port of the CAS server.
Definition at line 299 of file client4.php.
|
private |
This method is used to retrieve the proxy URL of the CAS server.
Definition at line 397 of file client4.php.
References CAS_VERSION_1_0, CAS_VERSION_2_0, getServerBaseURL(), and getServerVersion().
Here is the call graph for this function:
|
private |
This method is used to retrieve the proxy validating URL of the CAS server.
Definition at line 376 of file client4.php.
References CAS_VERSION_1_0, CAS_VERSION_2_0, getServerBaseURL(), getServerVersion(), and getURL().
Here is the call graph for this function:
|
private |
This method is used to retrieve the service validating URL of the CAS server.
Definition at line 355 of file client4.php.
References CAS_VERSION_1_0, CAS_VERSION_2_0, getServerBaseURL(), getServerVersion(), and getURL().
Here is the call graph for this function:
|
private |
This method is used to retrieve the URI of the CAS server.
Definition at line 307 of file client4.php.
|
private |
This method is used to retrieve the version of the CAS server.
Definition at line 281 of file client4.php.
|
private |
This method returns the Service Ticket provided in the URL of the request.
Definition at line 819 of file client4.php.
References $_st.
|
private |
This method returns a string depending on the language.
| $str | the index of the string in $_string. |
Definition at line 205 of file client4.php.
References _strings, and getLang().
Here is the call graph for this function:
|
private |
This method returns the URL of the current request (without any ticket CGI parameter).
Definition at line 1854 of file client4.php.
| CASClient::getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 574 of file client4.php.
References $_user.
|
private |
This method tells if a Proxy Granting Ticket was stored.
Definition at line 1045 of file client4.php.
|
private |
This method tells if a Proxy Ticket was stored.
Definition at line 1721 of file client4.php.
|
private |
This method tells if a Service Ticket was stored.
Definition at line 835 of file client4.php.
|
private |
This method filters a string by replacing special tokens by appropriate values and prints it.
The corresponding tokens are taken into account:
Used by CASClient::PrintHTMLHeader() and CASClient::printHTMLFooter().
| $str | the string to filter and output |
Definition at line 65 of file client4.php.
References getServerBaseURL(), and getServerVersion().
Here is the call graph for this function:
|
private |
This method is used to initialize the storage of PGT's.
Halts on error.
Definition at line 1208 of file client4.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 641 of file client4.php.
References $_SESSION, $res, getPGT(), getPT(), getST(), getUser(), hasST(), isProxy(), validatePGT(), validatePT(), and wasPreviouslyAuthenticated().
Here is the call graph for this function:
|
private |
This method returns TRUE when the CAs client is running i callback mode, FALSE otherwise.
Definition at line 1092 of file client4.php.
|
private |
Tells if a CAS client is a CAS proxy or not.
Definition at line 1001 of file client4.php.
|
private |
This method reads a PGT from its Iou and deletes the corresponding storage entry.
| $pgt_iou | the PGT Iou |
Definition at line 1244 of file client4.php.
| 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 769 of file client4.php.
References CAS_STR_LOGOUT, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, getServerLogoutURL(), getString(), printHTMLFooter(), and printHTMLHeader().
Here is the call graph for this function:
|
private |
This method prints the footer of the HTML output (after filtering).
If CASClient::setHTMLFooter() was not used, a default footer is output.
Definition at line 120 of file client4.php.
References CAS_STR_USING_SERVER, getString(), and HTMLFilterOutput().
Here is the call graph for this function:
|
private |
This method prints the header of the HTML output (after filtering).
If CASClient::setHTMLHeader() was not used, a default header is output.
| $title | the title of the page |
Definition at line 92 of file client4.php.
References $title, and HTMLFilterOutput().
Here is the call graph for this function:
|
private |
This method is used to acces a remote URL.
| $url | the URL to access. |
| $cookies | an array containing cookies strings such as 'name=val' |
| $headers | an array containing the HTTP header lines of the response (an empty array on failure). |
| $body | the body of the response, as a string (empty on failure). |
| $err_msg | an error message, filled on failure. |
Definition at line 1478 of file client4.php.
References $res.
| 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 752 of file client4.php.
References CAS_STR_AUTHENTICATION_WANTED, CAS_STR_SHOULD_HAVE_BEEN_REDIRECTED, exit, getServerLoginURL(), getString(), printHTMLFooter(), and printHTMLHeader().
Here is the call graph for this function:
|
private |
This method is used to retrieve PT's from the CAS server thanks to a PGT.
| $target_service | the service to ask for with the PT. |
| $err_code | an error code (PHPCAS_SERVICE_OK on success). |
| $err_msg | an error message (empty on success). |
Definition at line 1370 of file client4.php.
References domxml_open_mem().
Here is the call graph for this function:| CASClient::serviceMail | ( | $url, | |
| $flags, | |||
| & | $err_code, | ||
| & | $err_msg, | ||
| & | $pt | ||
| ) |
This method is used to access an IMAP/POP3/NNTP service.
| $url | a string giving the URL of the service, including the mailing box for IMAP URLs, as accepted by imap_open(). |
| $flags | options given to imap_open(). |
| $err_code | an error code Possible values are PHPCAS_SERVICE_OK (on success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_NOT AVAILABLE. |
| $err_msg | an error message on failure |
| $pt | the Proxy Ticket (PT) retrieved from the CAS server to access the URL on success, FALSE on error). |
Definition at line 1641 of file client4.php.
| CASClient::serviceWeb | ( | $url, | |
| & | $err_code, | ||
| & | $output | ||
| ) |
This method is used to access an HTTP[S] service.
| $url | the service to access. |
| $err_code | an error code Possible values are PHPCAS_SERVICE_OK (on success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_NOT AVAILABLE. |
| $output | the output of the service (also used to give an error message on failure). |
Definition at line 1561 of file client4.php.
References $_SESSION, $res, and CAS_STR_SERVICE_UNAVAILABLE.
|
private |
This method sets/unsets callback mode.
| $callback_mode | TRUE to set callback mode, FALSE otherwise. |
Definition at line 1079 of file client4.php.
|
private |
This method sets the callback url.
| $callback_url | url to set callback |
Definition at line 1158 of file client4.php.
| CASClient::setHTMLFooter | ( | $footer | ) |
This method set the HTML footer used for all outputs.
| $footer | the HTML footer. |
Definition at line 146 of file client4.php.
| CASClient::setHTMLHeader | ( | $header | ) |
This method set the HTML header used for all outputs.
| $header | the HTML header. |
Definition at line 134 of file client4.php.
| CASClient::setLang | ( | $lang | ) |
This method is used to set the language used by phpCAS.
| $lang | a string representing the language. |
Definition at line 225 of file client4.php.
|
private |
This method stores the Proxy Granting Ticket.
| $pgt | The Proxy Granting Ticket. |
Definition at line 1037 of file client4.php.
| CASClient::setPGTStorageDB | ( | $user, | |
| $password, | |||
| $database_type, | |||
| $hostname, | |||
| $port, | |||
| $database, | |||
| $table | |||
| ) |
This method is used to tell phpCAS to store the response of the CAS server to PGT requests into a database.
| $user | the user to access the data with |
| $password | the user's password |
| $database_type | the type of the database hosting the data |
| $hostname | the server hosting the database |
| $port | the port the server is listening on |
| $database | the name of the database |
| $table | the name of the table storing the data |
Definition at line 1290 of file client4.php.
References $user.
| CASClient::setPGTStorageFile | ( | $format = '', |
|
$path = '' |
|||
| ) |
This method is used to tell phpCAS to store the response of the CAS server to PGT requests onto the filesystem.
| $format | the format used to store the PGT's (`plain' and `xml' allowed) |
| $path | the path where the PGT's should be stored |
Definition at line 1261 of file client4.php.
|
private |
This method stores the Proxy Ticket.
| $pt | The Proxy Ticket. |
Definition at line 1713 of file client4.php.
|
private |
This method stores the Service Ticket.
| $st | The Service Ticket. |
Definition at line 827 of file client4.php.
|
private |
This method sets the URL of the current request.
| $url | url to set for service |
Definition at line 1904 of file client4.php.
|
private |
This method sets the CAS user's login name.
| $user | the login name of the authenticated user. |
Definition at line 562 of file client4.php.
References $user.
|
private |
This method stores a PGT.
Halts on error.
| $pgt | the PGT to store |
| $pgt_iou | its corresponding Iou |
Definition at line 1227 of file client4.php.
|
private |
This method is used to validate a PGT; halt on failure.
| $validate_url | the URL of the request to the CAS server. |
| $text_response | the response of the CAS server, as is (XML text); result of CASClient::validateST() or CASClient::validatePT(). |
| $tree_response | the response of the CAS server, as a DOM XML tree; result of CASClient::validateST() or CASClient::validatePT(). |
Definition at line 1326 of file client4.php.
|
private |
This method is used to validate a PT; halt on failure.
Definition at line 1740 of file client4.php.
|
private |
This method is used to validate a ST; halt on failure, and sets $validate_url, $text_reponse and $tree_response on success.
These parameters are used later by CASClient::validatePGT() for CAS proxies.
| $validate_url | the URL of the request to the CAS server. |
| $text_response | the response of the CAS server, as is (XML text). |
| $tree_response | the response of the CAS server, as a DOM XML tree. |
Definition at line 861 of file client4.php.
References $user, authError(), domxml_open_mem(), getServerServiceValidateURL(), getST(), hnodename(), isProxy(), n, readURL(), and setUser().
Here is the call graph for this function:
|
private |
This method tells if the user has already been (previously) authenticated by looking into the session variables.
Definition at line 695 of file client4.php.
References $_SESSION, $auth, callback(), isCallbackMode(), isProxy(), setPGT(), setPT(), setST(), and setUser().
Here is the call graph for this function: