주기적인 인증 기능 포함 및 코드 정리

This commit is contained in:
2026-06-25 13:50:54 +09:00
parent f178d69a99
commit ee38072ff9
14 changed files with 94 additions and 136 deletions

View File

@@ -1,4 +1,5 @@
using System.Globalization;
using System.ComponentModel.Design.Serialization;
using System.Globalization;
namespace BaronSoftware.SSO
{
@@ -38,6 +39,7 @@ namespace BaronSoftware.SSO
/// </summary>
public bool EnableAutoLogin { get; set; } = true;
private IUserValidator familyValidator;
public IUserValidator FamilyValidator
{
@@ -49,5 +51,24 @@ namespace BaronSoftware.SSO
/// 사용자 인증에 대한 추가 검증이 필요한 경우, IUserValidator 인터페이스를 구현하여 Validator 속성에 할당할 수 있습니다.
/// </summary>
public required IUserValidator? ExtraUserValidator { get; set; }
private int licenseCheckInterval = 60;
/// <summary>
/// 주기적인 라이센스 확인 (초)
/// 최소 값은 30초 입니다.
/// </summary>
public int LicenseCheckInterval
{
get => licenseCheckInterval;
set
{
if (value < 15)
licenseCheckInterval = 15;
licenseCheckInterval = value;
}
}
public Action ExpiredToken { get; set; }
}
}