From df54fd2b543f276cd17c8c36f4a8ba9a6bb306c5 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E8=AF=9DAPI=E8=B0=83=E7=94=A8,?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=8A=A5=E9=94=99=20#192=20(#200)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/auth/handle/impl/application_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/auth/handle/impl/application_key.py b/apps/common/auth/handle/impl/application_key.py index 5ebd9db28..cee128ef8 100644 --- a/apps/common/auth/handle/impl/application_key.py +++ b/apps/common/auth/handle/impl/application_key.py @@ -34,7 +34,7 @@ class ApplicationKey(AuthBaseHandle): return application_api_key.user, Auth(role_list=[RoleConstants.APPLICATION_KEY], permission_list=permission_list, application_id=application_api_key.application_id, - client_id=token, + client_id=str(application_api_key.id), client_type=AuthenticationType.API_KEY.value) def support(self, request, token: str, get_token_details):