From 9556ed5c990fdfbf605649ed56c0c1883fdc7d34 Mon Sep 17 00:00:00 2001 From: v_wuqdwu Date: Wed, 26 Jul 2023 17:08:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:auth=E6=A8=A1=E5=9D=97=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=8C=E5=B9=B6=E5=9C=A8op=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=B1=95=E7=A4=BA=20#973?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tencent/bkrepo/auth/interceptor/AuthInterceptor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/interceptor/AuthInterceptor.kt b/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/interceptor/AuthInterceptor.kt index 87b8aee506..e9b968d868 100644 --- a/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/interceptor/AuthInterceptor.kt +++ b/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/interceptor/AuthInterceptor.kt @@ -70,7 +70,6 @@ import com.tencent.bkrepo.common.api.constant.StringPool.COLON import com.tencent.bkrepo.common.api.constant.USER_KEY import com.tencent.bkrepo.common.operate.api.OperateLogService import com.tencent.bkrepo.common.operate.api.pojo.OperateLog -import com.tencent.bkrepo.common.operate.service.util.DesensitizedUtils import com.tencent.bkrepo.common.security.exception.AuthenticationException import com.tencent.bkrepo.common.security.exception.PermissionException import com.tencent.bkrepo.common.security.http.core.HttpAuthSecurity @@ -154,7 +153,8 @@ class AuthInterceptor( private fun getDescription(request: HttpServletRequest,method: Method):Map { // 获取url中请求参数 - val urlParams:Map = request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE) as Map + val urlParams:Map = + request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE) as Map // 获取方法中的请求参数 val methodParams = request.parameterMap // 获取方法中的requestBody