|
@@ -1,13 +1,8 @@
|
|
|
package com.keao.edu.common.security;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
-import java.io.PrintWriter;
|
|
|
-
|
|
|
-import javax.servlet.ServletException;
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
-import org.apache.commons.lang.exception.ExceptionUtils;
|
|
|
+import com.keao.edu.common.constant.CommonConstants;
|
|
|
+import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import org.apache.commons.lang3.exception.ExceptionUtils;
|
|
|
import org.codehaus.jackson.map.ObjectMapper;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.security.authentication.InsufficientAuthenticationException;
|
|
@@ -16,8 +11,11 @@ import org.springframework.security.oauth2.common.exceptions.InvalidTokenExcepti
|
|
|
import org.springframework.security.web.AuthenticationEntryPoint;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import com.keao.edu.common.constant.CommonConstants;
|
|
|
-import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import javax.servlet.ServletException;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.IOException;
|
|
|
+import java.io.PrintWriter;
|
|
|
|
|
|
@Component
|
|
|
public class BaseAuthenticationEntryPoint implements AuthenticationEntryPoint {
|