Skip to content

Commit

Permalink
延长token过期时间
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Porter committed Jul 16, 2024
1 parent aa30b7c commit 37051f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s3Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_credential_demo(self, allow_prefix, role):
'url': 'https://sts.tencentcloudapi.com/',
'domain': 'sts.tencentcloudapi.com',
# 临时密钥有效时长,单位是秒
'duration_seconds': 1800,
'duration_seconds': 60*60*12,
'secret_id': self.secret_id,
'secret_key': self.secret_key,

Expand Down Expand Up @@ -164,7 +164,7 @@ def getUnifyToken(self,downloadList,uploadList,downUpList):
'sts_scheme': 'https',
'sts_url': 'sts.tencentcloudapi.com/',
# 临时密钥有效时长,单位是秒
'duration_seconds': 1800,
'duration_seconds': 60*60*12,
'secret_id': self.secret_id,
# 固定密钥
'secret_key': self.secret_key,
Expand Down

0 comments on commit 37051f6

Please sign in to comment.