From 97e59384e0d1be24ab4b76d1c376485d069deab5 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Fri, 15 Apr 2022 16:24:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20connection=20token=20API=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=9C=89=E6=95=88=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/api/connection_token.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/authentication/api/connection_token.py b/apps/authentication/api/connection_token.py index 4afa7a306..9e16d31ba 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -484,7 +484,8 @@ class UserConnectionTokenViewSet( tp = 'app' if application else 'asset' data = { "id": token, 'secret': secret, - 'type': tp, 'protocol': system_user.protocol + 'type': tp, 'protocol': system_user.protocol, + 'expire_time': self.get_token_ttl(token), } return Response(data, status=201)