Selaa lähdekoodia

恢复默认token白名单功能。

bruce 2 vuotta sitten
vanhempi
commit
f3631f92c9

+ 2 - 7
imcs-bt-be/imcs-authority-server/src/main/java/com/github/zuihou/interceptor/TokenHandlerInterceptor.java

@@ -29,9 +29,7 @@ import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import static com.github.zuihou.context.BaseContextConstants.BASIC_HEADER_KEY;
-import static com.github.zuihou.context.BaseContextConstants.BEARER_HEADER_KEY;
-import static com.github.zuihou.context.BaseContextConstants.JWT_KEY_TENANT;
+import static com.github.zuihou.context.BaseContextConstants.*;
 import static com.github.zuihou.exception.code.ExceptionCode.JWT_OFFLINE;
 
 /**
@@ -164,13 +162,10 @@ public class TokenHandlerInterceptor extends HandlerInterceptorAdapter {
 
     /**
      * 忽略应用级token
-     *
-     * @return
      */
     protected boolean isIgnoreToken(String uri)
     {
-        return true;
-        //return ignoreTokenProperties.isIgnoreToken(uri);
+        return ignoreTokenProperties.isIgnoreToken(uri);
     }
 
     @Override