Remove "XXX/XXX" default sp_auth_credentials: related to MKSP-125.
authorMike Taylor <mike@indexdata.com>
Fri, 7 Nov 2014 11:03:04 +0000 (11:03 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 7 Nov 2014 11:03:04 +0000 (11:03 +0000)
According to the very helpful X-MK-Component header,
http://sp-mkws.indexdata.com/service-proxy/ is now using Service-Proxy
0.39. That means that the fix to MKWS-125 is in production (as it was
fixed in v0.38), so I can get rid of the horrible hack where MKWS has
been deliberately sending the credentials XXX/XXX then the application
provides none, in the hope that they're incorrect. Hurrah!

src/mkws-core.js

index 6b71bc1..0018509 100644 (file)
@@ -159,7 +159,7 @@ mkws.setMkwsConfig = function(overrides) {
     service_proxy_auth: undefined,
     sp_auth_path: "service-proxy/",
     sp_auth_query: "command=auth&action=perconfig",
-    sp_auth_credentials: "XXX/XXX", // Should be undefined: see bug MKSP-125.
+    sp_auth_credentials: undefined,
     lang: "",
     sort_options: [["relevance"], ["title:1", "title"], ["date:0", "newest"], ["date:1", "oldest"]],
     perpage_options: [10, 20, 30, 50],