live-forum/server/webapi/LiveForum/LiveForum.Code/JwtInfrastructure/JwtTokenConfig.cs
2026-03-24 11:27:37 +08:00

41 lines
993 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace LiveForum.Code.JwtInfrastructure
{
/// <summary>
/// JwtToken 配置文件
/// </summary>
public class JwtTokenConfig
{
/// <summary>
/// 加密值
/// </summary>
[JsonPropertyName("secret")]
public string Secret { get; set; } = string.Empty;
/// <summary>
/// 颁发者
/// </summary>
[JsonPropertyName("issuer")]
public string Issuer { get; set; } = string.Empty;
/// <summary>
/// 受众
/// </summary>
[JsonPropertyName("audience")]
public string Audience { get; set; } = string.Empty;
/// <summary>
/// 令牌过期时间
/// </summary>
[JsonPropertyName("accessTokenExpiration")]
public int AccessTokenExpiration { get; set; }
}
}