diff --git a/WebContent/WEB-INF/spring-security.xml b/WebContent/WEB-INF/spring-security.xml
index 11f3ff182d..7ba9d85276 100644
--- a/WebContent/WEB-INF/spring-security.xml
+++ b/WebContent/WEB-INF/spring-security.xml
@@ -23,6 +23,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/com/serotonin/mango/web/dwr/PublisherEditDwr.java b/src/com/serotonin/mango/web/dwr/PublisherEditDwr.java
index 6728364d28..57653dfae4 100644
--- a/src/com/serotonin/mango/web/dwr/PublisherEditDwr.java
+++ b/src/com/serotonin/mango/web/dwr/PublisherEditDwr.java
@@ -18,7 +18,6 @@
*/
package com.serotonin.mango.web.dwr;
-import java.net.*;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Iterator;
@@ -214,11 +213,6 @@ public boolean getIsUseJSON() {
return p.isUseJSON();
}
- public void httpSenderTest(String url, boolean usePost, List staticHeaders,
- List staticParameters) {
- Common.getUser().setTestingUtility(new HttpSenderTester(url, usePost, staticHeaders, staticParameters));
- }
-
public String httpSenderTestUpdate() {
HttpSenderTester test = Common.getUser().getTestingUtility(HttpSenderTester.class);
if (test == null)
diff --git a/src/org/scada_lts/login/LocalBasicAuthFilter.java b/src/org/scada_lts/login/LocalBasicAuthFilter.java
index 0184c93650..b9ac931c11 100644
--- a/src/org/scada_lts/login/LocalBasicAuthFilter.java
+++ b/src/org/scada_lts/login/LocalBasicAuthFilter.java
@@ -1,5 +1,6 @@
package org.scada_lts.login;
+import com.serotonin.mango.vo.User;
import org.scada_lts.mango.service.UserService;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.core.Authentication;
@@ -19,6 +20,7 @@ public LocalBasicAuthFilter(AuthenticationManager authenticationManager) {
@Override
protected void onSuccessfulAuthentication(HttpServletRequest request,
HttpServletResponse response, Authentication authentication) {
- authenticateLocal(request, response, authentication, new UserService());
+ User user = new UserService().getUser(authentication.getName());
+ authenticateLocal(request, response, authentication, user);
}
}