我们正在使用 DocuSign SDK(3.5.0 版)我们正在使用 JWT 身份验证开发与 DocuSign 的集成。
为了测试目的,我希望过期时间较短,例如 300、1800、..
但是每次生成令牌时,过期时间都是 3600。这是问题还是我遗漏了其他东西?
token = api_client.request_jwt_user_token(client_id=client_id,
user_id=user_id,
oauth_host_name=oauth_host_name,
private_key_bytes=private_key,
expires_in=1800)
结果---->
{'access_token': 'the_accesstoken',
'data': None,
'expires_in': '3600',
'refresh_token': None,
'scope': None,
'token_type': 'Bearer'}
答案 0 :(得分:0)
ExpiresIn 值设置断言本身的有效期。目前无法使用修改后的过期计时器请求访问令牌。
有一个未完成的增强请求,以允许短期令牌在演示环境中进行测试。该请求在内部被跟踪为 ID-4585。