mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-07-14 03:23:48 +08:00
🐛fix: #IJX34Q 非Identity的token支持jwt token
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user