Modify Existing Files. Vasco Digipass Authentication for Citrix Web Interface
广告
广告
4.3.2
Post-Installation Tasks
Modify Existing Files
The basic modification provided by VASCO consists of:
A javascript function inserted into the login.js file which retrieves the code or message text for an error or status message returned by the Authentication Server.
Javascript code inserted into the messagecenter.inc
file which calls the javascript function to get information about the current error or status message.
These may be customised as required to provide interpretation of messages which Users may find confusing, extra information and/or troubleshooting tips.
Messagecenter.inc Code
<%
// Digipass Pack for Citrix Web Interface modifications : START
%>
<br>
<script type="text/javascript">
dp_failcode = dp_getQueryVariable("failcode");
if (dp_failcode != "") {
document.write("Digipass Error: ");
document.write(dp_failcode);
document.write(" ");
document.writeln(dp_getQueryVariable("failmessage"));
}
</script>
<%
// Digipass Pack for Citrix Web Interface modifications : END
%>
Login.js Function
// Digipass Pack for Citrix Web Interface modifications : START
function dp_getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return unescape(pair[1]);
}
}
}
return "";
// Digipass Pack for Citrix Web Interface modifications : END
Digipass Authentication for Citrix Web Interface Guide 63
广告