Newer
Older
Warehouse / src / Infrastructure / Authentication / External / Exceptions / ExternalAuthenticationInfoException.cs
@Derek Comartin Derek Comartin on 22 Aug 2023 630 bytes Init
using MyWarehouse.Infrastructure.Authentication.External.Model;

namespace MyWarehouse.Infrastructure.Authentication.External.Exceptions;

public class ExternalAuthenticationInfoException : Exception
{
    public readonly ExternalUserData? ReceivedData;
    public readonly IEnumerable<string>? MissingFields;

    public ExternalAuthenticationInfoException(IEnumerable<string>? missingFields = null, ExternalUserData? receivedData = null)
        : base("External authentication yielded insufficient information to allow local login.")
    {
        ReceivedData = receivedData;
        MissingFields = missingFields;
    }
}