添加项目文件。

This commit is contained in:
2025-12-02 13:10:10 +08:00
parent 93a2382a16
commit 289aa4cbe7
400 changed files with 91177 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atomx.Common.Models
{
public class JwtSetting
{
/// <summary>
/// 令牌的颁发者,一般就写成域名,实际可任意
/// </summary>
public string Issuer { get; set; } = string.Empty;
/// <summary>
/// 颁发给谁,一般写成项目名,实际可任意
/// </summary>
public string Audience { get; set; } = string.Empty;
/// <summary>
/// 签名验证的KEY,至少 128bit 即16个英文字符以上实际可任意英文字符
/// </summary>
public string SecurityKey { get; set; } = string.Empty;
/// <summary>
/// 过期时间
/// </summary>
public int ClockSkew { get; set; }
/// <summary>
/// 访问令牌过期时间
/// </summary>
public int AccessTokenExpirationMinutes { get; set; }
/// <summary>
/// 刷新令牌过期时间
/// </summary>
public int RefreshTokenExpirationMinutes { get; set; }
}
}