🐛fix: #IJX34Q 非Identity的token支持jwt token

This commit is contained in:
yubaolee
2026-07-06 21:14:28 +08:00
parent 94f6f9e831
commit 912e1146d6
5 changed files with 239 additions and 16 deletions

View File

@@ -42,6 +42,16 @@ namespace Infrastructure
/// </summary>
public string RedisConf { get; set; }
/// <summary>
/// JWT签名密钥用于本地认证模式下生成和验证JWT Token
/// </summary>
public string JwtSecret { get; set; } = "openauth_default_jwt_secret_key_2024";
/// <summary>
/// JWT Token过期天数默认10天
/// </summary>
public int JwtExpireDays { get; set; } = 10;
//是否是Identity授权方式
public bool IsIdentityAuth => !string.IsNullOrEmpty(IdentityServerUrl);
}