Révision 4f315dab
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/cas/cas_server.response.inc | ||
---|---|---|
29 | 29 |
* Returns CAS attributes as part of a CAS 2.0 service response. |
30 | 30 |
* |
31 | 31 |
* @param $variables |
32 |
* An asociative array containing the keys 'attributes' and 'style', where |
|
32 |
* An associative array containing the keys 'attributes' and 'style', where
|
|
33 | 33 |
* the value of 'style' must be one of: |
34 | 34 |
* - 'jasig' (default) |
35 | 35 |
* - 'rubycas' |
... | ... | |
93 | 93 |
} |
94 | 94 |
|
95 | 95 |
|
96 |
/** |
|
97 |
* Returns a CAS 2.0 service response for a service not on the whitelist. |
|
98 |
* |
|
99 |
* @param $variables |
|
100 |
* An associative array containing the keys 'service' and 'error_code'. |
|
101 |
*/ |
|
102 |
function theme_cas_service_validate_whitelist_failure($variables) { |
|
103 |
$service = $variables['service']; |
|
104 |
$error_code = $variables['error_code']; |
|
105 |
$output = "<cas:serviceReponse xmlns:cas='http://www.yale.edu/tp/cas'>\n" . |
|
106 |
"<cas:authenticationFailure code=\"$error_code\">\n" . |
|
107 |
"Service $service not recognized.\n" . |
|
108 |
"</cas:authenticationFailure>\n" . |
|
109 |
"</cas:serviceResponse>\n"; |
|
110 |
return $output; |
|
111 |
} |
|
112 |
|
|
113 |
|
|
96 | 114 |
/** |
97 | 115 |
* Generate the Single Sign Out request. |
98 | 116 |
* |
Formats disponibles : Unified diff
Weekly update of contrib modules