사용자 검증기 구조 분리: 내부(Family) / 외부(Extra) 검증 구분
- 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>
This commit is contained in:
@@ -4,10 +4,13 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaronSoftware.SSO.Exceptions
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
internal class InvalidUserException : Exception
|
||||
{
|
||||
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) { }
|
||||
|
||||
Reference in New Issue
Block a user