- IUserValidator.Validate: bool 반환 → void (인증 실패 시 예외로 처리) - BaronSSOOption: Validator → ExtraUserValidator로 명명, FamilyValidator(기본 DefaultFamilyUserValidator) 추가 - DefaultFamilyUserValidator 신규: Center/Family 테넌트 사용자 통과, 그 외 InvalidUserException - BaronSSO.SignInAsync: Family/Extra 검증기 적용 흐름 정리 - InvalidUserException: UserInfo 기반 생성자 - Sample(MainWindow/SampleSettings/SimpleUserValidator) 갱신 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
526 B
C#
19 lines
526 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BaronSoftware.SSO
|
|
{
|
|
public class InvalidUserException : Exception
|
|
{
|
|
public UserInfo userinfo { get; }
|
|
|
|
public InvalidUserException(UserInfo userinfo) { }
|
|
public InvalidUserException() { }
|
|
public InvalidUserException(string message) : base(message) { }
|
|
public InvalidUserException(string message, Exception inner) : base(message, inner) { }
|
|
}
|
|
}
|