function theme_cas_service_logout_request in CAS 6.3
Same name and namespace in other branches
- 7 cas_server.response.inc \theme_cas_service_logout_request()
Generate the Single Sign Out request.
Parameters
unknown_type $variables: An associative array containing the key, date and logout id request
1 theme call to theme_cas_service_logout_request()
- cas_server_logout_clients in ./
cas_server.module - Send CAS a logout requests for each of the user's CAS tickets.
File
- ./
cas_server.response.inc, line 97 - Response callbacks for the CAS Server module.
Code
function theme_cas_service_logout_request($ticket, $date, $id) {
$output = "<samlp:LogoutRequest xmlns:samlp='urn:oasis:names:tc:SAML:2.0:protocol' ID='{$id}' Version='2.0' IssueInstant='{$date}'>\n";
$output .= "<saml:NameID xmlns:saml='urn:oasis:names:tc:SAML:2.0:assertion'>@NOT_USED@</saml:NameID>\n";
$output .= "<samlp:SessionIndex>{$ticket}</samlp:SessionIndex>\n";
$output .= "</samlp:LogoutRequest>\n";
return $output;
}