ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Functions | |
CAS_Client::_readURL ($url, &$headers, &$body, &$err_msg) | |
This method is used to acces a remote URL. More... | |
CAS_Client::_buildSAMLPayload () | |
This method is used to build the SAML POST body sent to /samlValidate URL. More... | |
CAS_Client::setURL ($url) | |
This method sets the URL of the current request. More... | |
CAS_Client::getURL () | |
This method returns the URL of the current request (without any ticket CGI parameter). More... | |
CAS_Client::setBaseURL ($url) | |
This method sets the base URL of the CAS server. More... | |
CAS_Client::_getClientUrl () | |
Try to figure out the phpCas client URL with possible Proxys / Ports etc. More... | |
CAS_Client::_isHttps () | |
This method checks to see if the request is secured via HTTPS. More... | |
CAS_Client::_removeParameterFromQueryString ($parameterName, $queryString) | |
Removes a parameter from a query string. More... | |
CAS_Client::_buildQueryUrl ($url, $query) | |
This method is used to append query parameters to an url. More... | |
CAS_Client::_renameSession ($ticket) | |
Renaming the session. More... | |
CAS_Client::_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. More... | |
CAS_Client::_getNodeType ($nodeURL) | |
Determine the node type from the URL. More... | |
CAS_Client::addRebroadcastNode ($rebroadcastNodeUrl) | |
Store the rebroadcast node for pgtIou/pgtId and logout requests. More... | |
CAS_Client::addRebroadcastHeader ($header) | |
This method is used to add header parameters when rebroadcasting pgtIou/pgtId or logoutRequest. More... | |
CAS_Client::_rebroadcast ($type) | |
This method rebroadcasts logout/pgtIou requests. More... | |
Variables | |
CAS_Client::$_url | |
the URL of the current request (without any ticket CGI parameter). More... | |
CAS_Client::$_rebroadcast = false | |
Boolean of whether to rebroadcast pgtIou/pgtId and logoutRequest, and array of the nodes. More... | |
CAS_Client::$_rebroadcast_nodes = array() | |
const | CAS_Client::HOSTNAME = 0 |
Constants used for determining rebroadcast node type. More... | |
const | CAS_Client::IP = 1 |
CAS_Client::$_rebroadcast_headers = array() | |
An array to store extra rebroadcast curl options. More... | |
const | CAS_Client::LOGOUT = 0 |
Constants used for determining rebroadcast type (logout or pgtIou/pgtId). More... | |
const | CAS_Client::PGTIOU = 1 |
|
private |
This method is used to print the HTML output when the user was not authenticated.
string | $failure | the failure that occured |
string | $cas_url | the URL the CAS server was asked for |
bool | $no_response | the response from the CAS server (other parameters are ignored if true) |
bool | $bad_response | bad response from the CAS server ($err_code and $err_msg ignored if true) |
string | $cas_response | the response of the CAS server |
int | $err_code | the error code given by the CAS server |
string | $err_msg | the error message given by the CAS server |
Definition at line 3849 of file Client.php.
References $_SERVER, $failure, $lang, CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, CAS_Client\getLangObj(), CAS_Client\getServerVersion(), CAS_Client\getURL(), CAS_Client\printHTMLFooter(), CAS_Client\printHTMLHeader(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceExit().
|
private |
This method is used to append query parameters to an url.
Since the url might already contain parameter it has to be detected and to build a proper URL
string | $url | base url to add the query params to |
string | $query | params in query form with & separated |
Definition at line 3787 of file Client.php.
Referenced by CAS_Client\getServerLoginURL(), CAS_Client\getServerProxyValidateURL(), CAS_Client\getServerSamlValidateURL(), and CAS_Client\getServerServiceValidateURL().
|
private |
This method is used to build the SAML POST body sent to /samlValidate URL.
Definition at line 2931 of file Client.php.
References CAS_Client\getTicket(), SAML_ASSERTION_ARTIFACT, SAML_ASSERTION_ARTIFACT_CLOSE, SAML_SOAP_BODY, SAML_SOAP_BODY_CLOSE, SAML_SOAP_ENV, SAML_SOAP_ENV_CLOSE, SAMLP_REQUEST, SAMLP_REQUEST_CLOSE, phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\_readURL().
|
private |
Try to figure out the phpCas client URL with possible Proxys / Ports etc.
Definition at line 3702 of file Client.php.
References $_SERVER, and CAS_Client\_isHttps().
Referenced by CAS_Client\_getCallbackURL(), and CAS_Client\getURL().
|
private |
Determine the node type from the URL.
String | $nodeURL | The node URL. |
Definition at line 3922 of file Client.php.
References phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\_rebroadcast().
|
private |
This method checks to see if the request is secured via HTTPS.
Definition at line 3742 of file Client.php.
References $_SERVER.
Referenced by CAS_Client\__construct(), CAS_Client\_getClientUrl(), and CAS_Client\getURL().
|
private |
This method is used to acces a remote URL.
string | $url | the URL to access. |
string | &$headers | an array containing the HTTP header lines of the response (an empty array on failure). |
string | &$body | the body of the response, as a string (empty on failure). |
string | &$err_msg | an error message, filled on failure. |
Definition at line 2875 of file Client.php.
References CAS_Client\$_requestImplementation, $request, $url, CAS_Client\_buildSAMLPayload(), phpCAS\error(), CAS_Client\getServerVersion(), SAML_VERSION_1_1, phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\retrievePT(), CAS_Client\validateCAS10(), and CAS_Client\validateCAS20().
|
private |
This method rebroadcasts logout/pgtIou requests.
Can be LOGOUT,PGTIOU
int | $type | type of rebroadcasting. |
Definition at line 3988 of file Client.php.
References $_POST, CAS_Client\$_rebroadcast_nodes, CAS_Client\$_requestImplementation, $_SERVER, $i, $request, $type, $url, CAS_Client\_getNodeType(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\_wasPreviouslyAuthenticated(), CAS_Client\addRebroadcastNode(), and CAS_Client\handleLogoutRequests().
|
private |
Removes a parameter from a query string.
string | $parameterName | name of parameter |
string | $queryString | query string |
Definition at line 3767 of file Client.php.
Referenced by CAS_Client\getURL().
|
private |
Renaming the session.
string | $ticket | name of the ticket |
Definition at line 3801 of file Client.php.
References $_SESSION, CAS_Client\getChangeSessionID(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\validateSA().
CAS_Client::addRebroadcastHeader | ( | $header | ) |
This method is used to add header parameters when rebroadcasting pgtIou/pgtId or logoutRequest.
string | $header | Header to send when rebroadcasting. |
Definition at line 3966 of file Client.php.
References $header.
CAS_Client::addRebroadcastNode | ( | $rebroadcastNodeUrl | ) |
Store the rebroadcast node for pgtIou/pgtId and logout requests.
string | $rebroadcastNodeUrl | The rebroadcast node URL. |
Definition at line 3941 of file Client.php.
References CAS_Client\_rebroadcast().
CAS_Client::getURL | ( | ) |
This method returns the URL of the current request (without any ticket CGI parameter).
Definition at line 3648 of file Client.php.
References $_SERVER, CAS_Client\$_url, CAS_Client\_getClientUrl(), CAS_Client\_isHttps(), CAS_Client\_removeParameterFromQueryString(), CAS_Client\setURL(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\_authError(), CAS_Client\getServerLoginURL(), CAS_Client\getServerProxyValidateURL(), CAS_Client\getServerSamlValidateURL(), CAS_Client\getServerServiceValidateURL(), and CAS_Client\isAuthenticated().
CAS_Client::setBaseURL | ( | $url | ) |
This method sets the base URL of the CAS server.
string | $url | the base URL |
Definition at line 3686 of file Client.php.
References $url.
CAS_Client::setURL | ( | $url | ) |
This method sets the URL of the current request.
string | $url | url to set for service |
Definition at line 3632 of file Client.php.
References $url.
Referenced by CAS_Client\getURL().
|
private |
Boolean of whether to rebroadcast pgtIou/pgtId and logoutRequest, and array of the nodes.
Definition at line 3905 of file Client.php.
|
private |
An array to store extra rebroadcast curl options.
Definition at line 3956 of file Client.php.
|
private |
Definition at line 3906 of file Client.php.
Referenced by CAS_Client\_rebroadcast().
|
private |
the URL of the current request (without any ticket CGI parameter).
Written and read by CAS_Client::getURL().
Definition at line 3622 of file Client.php.
Referenced by CAS_Client\getURL().
const CAS_Client::HOSTNAME = 0 |
Constants used for determining rebroadcast node type.
Definition at line 3911 of file Client.php.
const CAS_Client::IP = 1 |
Definition at line 3912 of file Client.php.
const CAS_Client::LOGOUT = 0 |
Constants used for determining rebroadcast type (logout or pgtIou/pgtId).
Definition at line 3978 of file Client.php.
const CAS_Client::PGTIOU = 1 |
Definition at line 3979 of file Client.php.