|
|
@@ -3,6 +3,7 @@ package com.uas.platform.b2b.filter;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
|
|
|
@@ -26,6 +27,8 @@ public class AccessSignatureInterceptor extends HandlerInterceptorAdapter {
|
|
|
private final static String idParam = "access_id";
|
|
|
private final static String signatureParam = "_signature";
|
|
|
|
|
|
+ private static final Logger logger = Logger.getLogger(AccessSignatureInterceptor.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private EnterpriseService enterpriseService;
|
|
|
|
|
|
@@ -51,6 +54,8 @@ public class AccessSignatureInterceptor extends HandlerInterceptorAdapter {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
+ logger.error(String.format("FORBIDDEN FROM %s@%s, REQUEST: %s, SIGNATURE: %s", AgentUtils.getIp(request), id, urlMessage,
|
|
|
+ sign));
|
|
|
}
|
|
|
}
|
|
|
response.setStatus(HttpStatus.FORBIDDEN.value());
|