From 6ecc86b6282bdd670ee05421442e9db4ae4b1350 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 22 Aug 2013 12:07:26 +0100 Subject: [PATCH] Report authentication failures that occur at the HTTP level (e.g. 404) as opposed to at the application level (e.g. XML that says the credentials were rejected). This becomes important as we start to introduce multiple authentication URLs for different customers. --- tools/htdocs/mkws.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index e90ff29..6b30ed2 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -727,7 +727,10 @@ function mkws_service_proxy_auth(auth_url) { debug("Run service proxy auth URL: " + auth_url); - var request = new pzHttpRequest(auth_url); + var request = new pzHttpRequest(auth_url, function(err) { + alert("HTTP call for authentication failed: " + err) + return; + }); request.get(null, function(data) { if (!$.isXMLDoc(data)) { alert("service proxy auth response document is not valid XML document, give up!"); -- 1.7.10.4