|
|
@@ -1,6 +1,6 @@
|
|
|
package com.middle.platform.gateway.filter.security;
|
|
|
|
|
|
-import com.middle.platform.gateway.constant.RequestConstant;
|
|
|
+import com.middle.platform.common.constant.RequestConstant;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
|
|
|
import org.springframework.cloud.gateway.filter.GlobalFilter;
|
|
|
@@ -13,8 +13,6 @@ import reactor.core.publisher.Mono;
|
|
|
* Token 过滤器,验证 token 的有效性
|
|
|
* 1. 验证通过时,将 userId、userType、tenantId 通过 Header 转发给服务
|
|
|
* 2. 验证不通过,还是会转发给服务。因为,接口是否需要登录的校验,还是交给服务自身处理
|
|
|
- *
|
|
|
- * @author 芋道源码
|
|
|
*/
|
|
|
@Component
|
|
|
@Slf4j
|