Révision a2baadd1
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/cas/cas_server.response.inc | ||
---|---|---|
15 | 15 |
*/ |
16 | 16 |
function theme_cas_service_validate_success($variables) { |
17 | 17 |
$cas_name = $variables['name']; |
18 |
$output .= "<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>\n";
|
|
18 |
$output = "<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>\n"; |
|
19 | 19 |
$output .= "<cas:authenticationSuccess>\n"; |
20 | 20 |
$output .= "<cas:user>$cas_name</cas:user>\n"; |
21 | 21 |
$output .= theme('cas_service_validate_attributes', $variables); |
... | ... | |
40 | 40 |
$style = $variables['style']; |
41 | 41 |
|
42 | 42 |
$output = ''; |
43 |
switch($style) { |
|
43 |
switch ($style) {
|
|
44 | 44 |
case 'jasig': |
45 | 45 |
default: |
46 | 46 |
$output .= "<cas:attributes>\n"; |
... | ... | |
91 | 91 |
|
92 | 92 |
return $output; |
93 | 93 |
} |
94 |
|
|
95 |
|
|
96 |
/** |
|
97 |
* Generate the Single Sign Out request. |
|
98 |
* |
|
99 |
* @param unknown_type $variables |
|
100 |
* An associative array containing the key, date and logout id request |
|
101 |
*/ |
|
102 |
function theme_cas_service_logout_request($variables) { |
|
103 |
$id = $variables['id']; |
|
104 |
$date = $variables['date']; |
|
105 |
$ticket = $variables['ticket']; |
|
106 |
$output = "<samlp:LogoutRequest xmlns:samlp='urn:oasis:names:tc:SAML:2.0:protocol' ID='$id' Version='2.0' IssueInstant='$date'>\n"; |
|
107 |
$output .= "<saml:NameID xmlns:saml='urn:oasis:names:tc:SAML:2.0:assertion'>@NOT_USED@</saml:NameID>\n"; |
|
108 |
$output .= "<samlp:SessionIndex>$ticket</samlp:SessionIndex>\n"; |
|
109 |
$output .= "</samlp:LogoutRequest>\n"; |
|
110 |
return $output; |
|
111 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules