Modules | |
CAS Proxy features (CAS 2.0, Proxy Granting Tickets) | |
Callback from the CAS server | |
PGT storage | |
CAS proxied client features (CAS 2.0, Proxy Tickets) | |
Miscellaneous | |
Functions | |
CASClient::getST () | |
CASClient::setST ($st) | |
CASClient::hasST () | |
CASClient::setCasServerCert ($cert) | |
CASClient::setCasServerCACert ($cert) | |
CASClient::setNoCasServerValidation () | |
CASClient::validateST ($validate_url, &$text_response, &$tree_response) | |
CASClient::validateSA ($validate_url, &$text_response, &$tree_response) | |
CASClient::setSessionAttributes ($text_response) | |
Variables | |
CASClient::$_st | |
CASClient::$_cas_server_cert | |
CASClient::$_cas_server_ca_cert | |
CASClient::$_no_cas_server_validation |
CASClient::getST | ( | ) | [private, inherited] |
This method returns the Service Ticket provided in the URL of the request.
Definition at line 1247 of file client.php.
Referenced by CASClient::isAuthenticated(), and CASClient::validateST().
CASClient::hasST | ( | ) | [private, inherited] |
This method tells if a Service Ticket was stored.
Definition at line 1263 of file client.php.
Referenced by CASClient::isAuthenticated().
CASClient::setCasServerCACert | ( | $ | cert | ) | [inherited] |
Set the CA certificate of the CAS server.
$cert | the PEM certificate of the CA that emited the cert of the server |
Definition at line 1315 of file client.php.
CASClient::setCasServerCert | ( | $ | cert | ) | [inherited] |
Set the certificate of the CAS server.
$cert | the PEM certificate |
Definition at line 1305 of file client.php.
CASClient::setNoCasServerValidation | ( | ) | [inherited] |
Set no SSL validation for the CAS server.
Definition at line 1323 of file client.php.
CASClient::setSessionAttributes | ( | $ | text_response | ) | [private, inherited] |
This method will parse the DOM and pull out the attributes from the SAML payload and put them into an array, then put the array into the session.
$text_response | the SAML payload. |
Definition at line 1549 of file client.php.
References phpCAS::trace(), phpCAS::traceBegin(), and phpCAS::traceEnd().
CASClient::setST | ( | $ | st | ) | [private, inherited] |
This method stores the Service Ticket.
$st | The Service Ticket. |
Definition at line 1255 of file client.php.
Referenced by CASClient::wasPreviouslyAuthenticated().
CASClient::validateSA | ( | $ | validate_url, | |
&$ | text_response, | |||
&$ | tree_response | |||
) | [private, inherited] |
This method is used to validate a SAML TICKET; 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 1471 of file client.php.
References phpCAS::trace(), and phpCAS::traceBegin().
CASClient::validateST | ( | $ | validate_url, | |
&$ | text_response, | |||
&$ | tree_response | |||
) | [private, inherited] |
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. Used for all CAS 1.0 validations
$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 1341 of file client.php.
References CASClient::authError(), CASClient::getServerServiceValidateURL(), CASClient::getST(), CASClient::isProxy(), CASClient::readURL(), CASClient::setUser(), phpCAS::trace(), and phpCAS::traceBegin().
CASClient::$_cas_server_ca_cert [private, inherited] |
the certificate of the CAS server CA.
Definition at line 1290 of file client.php.
CASClient::$_cas_server_cert [private, inherited] |
the certificate of the CAS server.
Definition at line 1282 of file client.php.
CASClient::$_no_cas_server_validation [private, inherited] |
Set to true not to validate the CAS server.
Definition at line 1298 of file client.php.
CASClient::$_st [private, inherited] |
the Service Ticket provided in the URL of the request if present (empty otherwise). Written by CASClient::CASClient(), read by CASClient::getST() and CASClient::hasPGT().
Definition at line 1240 of file client.php.