[feature] python兼容层基本完成

This commit is contained in:
lichx
2024-11-03 11:21:47 +08:00
parent d33ff74a51
commit 03edc76960
21 changed files with 488 additions and 15 deletions
@@ -1,7 +0,0 @@
namespace IwutMail.Model
{
public class SecretConfig
{
public string HashSalt { get; set; } = null!;
}
}
@@ -1,26 +0,0 @@
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!;
}
}