using Nop.Core.Domain.Customers; using Nop.Services.Plugins; namespace Nop.Services.Authentication.External; /// /// Represents an authentication plugin manager /// public partial interface IAuthenticationPluginManager : IPluginManager { /// /// Load active authentication methods /// /// Filter by customer; pass null to load all plugins /// Filter by store; pass 0 to load all plugins /// /// A task that represents the asynchronous operation /// The task result contains the list of active authentication methods /// Task> LoadActivePluginsAsync(Customer customer = null, int storeId = 0); /// /// Check whether the passed authentication method is active /// /// Authentication method to check /// Result bool IsPluginActive(IExternalAuthenticationMethod authenticationMethod); /// /// Check whether the authentication method with the passed system name is active /// /// System name of authentication method to check /// Filter by customer; pass null to load all plugins /// Filter by store; pass 0 to load all plugins /// /// A task that represents the asynchronous operation /// The task result contains the result /// Task IsPluginActiveAsync(string systemName, Customer customer = null, int storeId = 0); }