Software_Engineering_Field_.../SiteManagementSystem(Softwa.../Model/TokenFactoryConfiguration.cs

27 lines
758 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace SiteManagementSystem_SoftwareEngineering_.Model
{
public class TokenFactoryConfiguration
{
/// <summary>
/// AccessToken有效期分钟
/// </summary>
public int AccessTokenExpire { get; set; } = 60;
/// <summary>
/// RefreshToken有效期分钟
/// </summary>
public int RefreshTokenExpire { get; set; } = 10080;
/// <summary>
/// 在RefreshToken过期前多久自动刷新RefreshToken
/// </summary>
public int RefreshTokenBefore { get; set; } = 1440;
public string Issuer { get; set; } = null!;
public string Audience { get; set; } = null!;
public string SigningKey { get; set; } = null!;
}
}