Only authenticate if !mkws.authenticated
authorJason Skomorowski <jason@indexdata.com>
Tue, 12 Aug 2014 16:15:43 +0000 (12:15 -0400)
committerJason Skomorowski <jason@indexdata.com>
Tue, 12 Aug 2014 16:16:55 +0000 (12:16 -0400)
src/mkws-core.js

index 94060a2..9c46f27 100644 (file)
@@ -623,7 +623,7 @@ mkws.pagerNext = function(tname) {
       }
     */
 
-    if (mkws.config.use_service_proxy) {
+    if (mkws.config.use_service_proxy && !mkws.authenticated) {
       authenticateSession(mkws.config.service_proxy_auth,
                           mkws.config.service_proxy_auth_domain,
                           mkws.config.pazpar2_url);