CatPtain commited on
Commit
ec5cf70
·
verified ·
1 Parent(s): 456e181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -35,6 +35,9 @@ def generate_jwt(client_id, private_key, kid):
35
  "iat": int(time.time()),
36
  "exp": int(time.time()) + 3600, # JWT 有效期为 1 小时
37
  "jti": uuid.uuid4().hex # 防止重放攻击
 
 
 
38
  }
39
  return jwt.encode(payload, private_key, algorithm="RS256", headers=header)
40
 
 
35
  "iat": int(time.time()),
36
  "exp": int(time.time()) + 3600, # JWT 有效期为 1 小时
37
  "jti": uuid.uuid4().hex # 防止重放攻击
38
+ "connector_id": "4213660371992" # 根据实际要求设置
39
+ "user_id": "4213660371992" # 根据实际要求设置
40
+ "user": "4213660371992" # 根据实际要求设置
41
  }
42
  return jwt.encode(payload, private_key, algorithm="RS256", headers=header)
43