FruitBank/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullMultiFactorAuthenticati...

37 lines
1.9 KiB
C#

using Nop.Core.Domain.Customers;
//using Nop.Services.Authentication.MultiFactor;
//using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services;
/// <summary>
/// Null implementation of IMultiFactorAuthenticationPluginManager for SANDBOX
/// </summary>
//public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager
//{
// public Task<IMultiFactorAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
// => Task.FromResult<IMultiFactorAuthenticationMethod?>(null);
// public Task<IList<IMultiFactorAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
// => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
// public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0)
// => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
// public Task<IList<IMultiFactorAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
// => Task.FromResult<IList<IMultiFactorAuthenticationMethod>>(new List<IMultiFactorAuthenticationMethod>());
// public Task<bool> HasActivePluginsAsync(Customer? customer = null, int storeId = 0)
// => Task.FromResult(false);
// public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false;
// public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List<string> systemNames) => false;
// public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
// => Task.FromResult(false);
// public Task<string> GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin)
// => Task.FromResult(string.Empty);
//}