From: Mike Taylor Date: Thu, 22 Aug 2013 11:07:26 +0000 (+0100) Subject: Report authentication failures that occur at the HTTP level (e.g. 404) X-Git-Tag: 0.9.1~231 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6ecc86b6282bdd670ee05421442e9db4ae4b1350;p=mkws-moved-to-github.git 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. --- 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!");