|
|
@ -1,18 +1,13 @@ |
|
|
|
package com.epmet.jmreport.config; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.jeecg.modules.jmreport.api.JmReportTokenServiceI; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.data.redis.core.HashOperations; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.http.HttpHeaders; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.Base64; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 自定义积木报表鉴权(如果不进行自定义,则所有请求不做权限控制) |
|
|
@ -63,7 +58,9 @@ public class JimuReportTokenService implements JmReportTokenServiceI { |
|
|
|
public Boolean verifyToken(String token) { |
|
|
|
|
|
|
|
log.info("JimuReportTokenService#verifyToken :: 接收到token为:{}", token); |
|
|
|
|
|
|
|
//todo 暂时注掉
|
|
|
|
return true; |
|
|
|
/* |
|
|
|
if (StringUtils.isBlank(token)) { |
|
|
|
// 没有token,不样访问
|
|
|
|
return false; |
|
|
@ -85,7 +82,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
return true;*/ |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -99,4 +96,4 @@ public class JimuReportTokenService implements JmReportTokenServiceI { |
|
|
|
//header.add("Authorization", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHAiOiJnb3YiLCJjbGllbnQiOiJ3ZWIiLCJleHAiOjE2NjAxODExNzcsInVzZXJJZCI6IjczYWU2MjgwZTQ2YTY2NTNhNTYwNWQ1MWQ1NDYyNzI1IiwiaWF0IjoxNjU5NTc2Mzc3fQ.XX5dAzKoUrNcSgfEEBIO7EjZdd5ooP7nK2lYgphy1J5RrgR_DOilxUmASOJ99y93uAJluW66J6YyqaLtJ7vEmQ");
|
|
|
|
return header; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|