Commit 1de40ae4 by 胡懿

去除平台的验证,

parent 3fdf2083
......@@ -54,6 +54,8 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws ServletException, IOException {
MyReadApplicationUtils.readApplication();
boolean b = false; // 是否有别的平台的认证
if (b) {
String pdToken = request.getHeader("pdToken");
StringBuffer requestURL = request.getRequestURL();
stringRedisTemplate.opsForValue().set("pdToken", pdToken);
......@@ -98,6 +100,8 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
}
// return;
}
}
String token = SecurityFrameworkUtils.obtainAuthorization(request,
securityProperties.getTokenHeader(), securityProperties.getTokenParameter());
......
......@@ -82,7 +82,8 @@ public class AuthController {
@PermitAll
@Operation(summary = "验证平台token")
public CommonResult<PtResult<LoginUserInfo>> checkPdToken(String code, String redirect_uri) {
if (null != code && !"".equals(code)) {
boolean b = false;
if (null != code && !"".equals(code) && b) {
return CommonResult.success(authService.checkPdToken(code, redirect_uri));
}
......
......@@ -132,8 +132,8 @@ spring:
# virtual-host: /
# Kafka 配置项,对应 KafkaProperties 配置类
kafka:
# bootstrap-servers: 192.168.19.128:9092
bootstrap-servers: 59.195.13.208:9092
bootstrap-servers: 192.168.19.128:9092
# bootstrap-servers: 59.195.13.208:9092
producer:
retries: 3
request.timeout.ms: 60000
......
......@@ -3,8 +3,8 @@ spring:
name: yudao-server
profiles:
active: local
# active: dev
# active: local
active: dev
main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment