ILIAS
Release_4_1_x_branch Revision 61804
|
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 () | |
This method returns the Service Ticket provided in the URL of the request. | |
CASClient::setST ($st) | |
This method stores the Service Ticket. | |
CASClient::hasST () | |
This method tells if a Service Ticket was stored. | |
CASClient::setCasServerCert ($cert) | |
Set the certificate of the CAS server. | |
CASClient::setCasServerCACert ($cert) | |
Set the CA certificate of the CAS server. | |
CASClient::setNoCasServerValidation () | |
Set no SSL validation for the CAS server. | |
CASClient::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. | |
CASClient::validateSA ($validate_url, &$text_response, &$tree_response) | |
This method is used to validate a SAML TICKET; halt on failure, and sets $validate_url, $text_reponse and $tree_response on success. | |
CASClient::setSessionAttributes ($text_response) | |
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. |
Variables | |
CASClient::$_st | |
the Service Ticket provided in the URL of the request if present (empty otherwise). | |
CASClient::$_cas_server_cert | |
the certificate of the CAS server. | |
CASClient::$_cas_server_ca_cert | |
the certificate of the CAS server CA. | |
CASClient::$_no_cas_server_validation | |
Set to true not to validate the CAS server. |
|
private |
This method returns the Service Ticket provided in the URL of the request.
Definition at line 1298 of file client.php.
References CASClient\$_st.
Referenced by CASClient\isAuthenticated(), and CASClient\validateST().
|
private |
This method tells if a Service Ticket was stored.
Definition at line 1314 of file client.php.
Referenced by CASClient\isAuthenticated().
CASClient::setCasServerCACert | ( | $cert | ) |
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 1366 of file client.php.
CASClient::setCasServerCert | ( | $cert | ) |
Set the certificate of the CAS server.
$cert | the PEM certificate |
Definition at line 1356 of file client.php.
CASClient::setNoCasServerValidation | ( | ) |
Set no SSL validation for the CAS server.
Definition at line 1374 of file client.php.
|
private |
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 1600 of file client.php.
References $_SESSION, $result, domxml_open_mem(), SAML_ATTRIBUTES, phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
private |
This method stores the Service Ticket.
$st | The Service Ticket. |
Definition at line 1306 of file client.php.
Referenced by CASClient\wasPreviouslyAuthenticated().
|
private |
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 1522 of file client.php.
References $user, domxml_open_mem(), phpCAS\trace(), and phpCAS\traceBegin().
|
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. 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 1392 of file client.php.
References $user, CASClient\authError(), domxml_open_mem(), CASClient\getCallbackURL(), CASClient\getServerServiceValidateURL(), CASClient\getST(), CASClient\isProxy(), n, CASClient\readURL(), CASClient\setUser(), phpCAS\trace(), and phpCAS\traceBegin().
|
private |
the certificate of the CAS server CA.
Definition at line 1341 of file client.php.
|
private |
the certificate of the CAS server.
Definition at line 1333 of file client.php.
|
private |
Set to true not to validate the CAS server.
Definition at line 1349 of file client.php.
|
private |
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 1291 of file client.php.
Referenced by CASClient\getST().