From 8439ec6cd6e9a062365a424b6d3173065491008d Mon Sep 17 00:00:00 2001 From: bennychen Date: Thu, 30 Oct 2025 21:14:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E8=BA=AB=E4=BB=BD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bk-plugin-runtime/bk_plugin_runtime/config/default.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py b/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py index 7d194d5..22a8f4c 100644 --- a/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py +++ b/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py @@ -73,6 +73,12 @@ "bk_plugin_framework.services.bpf_service.middlewares.TraceIDInjectMiddleware", "apigw_manager.apigw.authentication.ApiGatewayJWTGenericMiddleware", # JWT 认证 "apigw_manager.apigw.authentication.ApiGatewayJWTAppMiddleware", # JWT 透传的应用信息 + "apigw_manager.apigw.authentication.ApiGatewayJWTUserMiddleware", # JWT 透传的用户信息 +) + +# 用户认证 +AUTHENTICATION_BACKENDS += ( + "apigw_manager.apigw.authentication.UserModelBackend", ) # 所有环境的日志级别可以在这里配置