31 lines
1.6 KiB
C#
31 lines
1.6 KiB
C#
using Nop.Core.Domain.Customers;
|
|
using Nop.Services.Authentication.External;
|
|
using Nop.Services.Plugins;
|
|
|
|
namespace Mango.Sandbox.EndPoints.Services;
|
|
|
|
public class NullAuthenticationPluginManager : IAuthenticationPluginManager
|
|
{
|
|
public Task<IExternalAuthenticationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
|
|
=> Task.FromResult<IExternalAuthenticationMethod?>(null);
|
|
|
|
public Task<IList<IExternalAuthenticationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
|
|
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
|
|
|
|
public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0)
|
|
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
|
|
|
|
public Task<IList<IExternalAuthenticationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
|
|
=> Task.FromResult<IList<IExternalAuthenticationMethod>>(new List<IExternalAuthenticationMethod>());
|
|
|
|
public bool IsPluginActive(IExternalAuthenticationMethod plugin, List<string> systemNames) => false;
|
|
|
|
public bool IsPluginActive(IExternalAuthenticationMethod plugin) => false;
|
|
|
|
public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
|
|
=> Task.FromResult(false);
|
|
|
|
public Task<string> GetPluginLogoUrlAsync(IExternalAuthenticationMethod plugin)
|
|
=> Task.FromResult(string.Empty);
|
|
}
|