Browse Source

fix: connection token API 返回有效时间

pull/8071/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent
commit
97e59384e0
  1. 3
      apps/authentication/api/connection_token.py

3
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)

Loading…
Cancel
Save