perf: 设置Connection Token 默认最少5分钟 (#8331)

This commit is contained in:
Jiangjie.Bai
2022-06-01 18:00:22 +08:00
committed by GitHub
parent 810c500402
commit 3bc307d666

View File

@@ -151,6 +151,9 @@ TOKEN_EXPIRATION = CONFIG.TOKEN_EXPIRATION
OTP_IN_RADIUS = CONFIG.OTP_IN_RADIUS
# Connection token
CONNECTION_TOKEN_EXPIRATION = CONFIG.CONNECTION_TOKEN_EXPIRATION
if CONNECTION_TOKEN_EXPIRATION < 5 * 60:
# 最少5分钟
CONNECTION_TOKEN_EXPIRATION = 5 * 60
RBAC_BACKEND = 'rbac.backends.RBACBackend'