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