示例#1
0
        public static bool IsMethodActive(this IExternalAuthenticationMethod method,
                                          ExternalAuthenticationSettings settings)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            if (settings.ActiveAuthenticationMethodSystemNames == null)
            {
                return(false);
            }
            //foreach (string activeMethodSystemName in settings.ActiveAuthenticationMethodSystemNames)
            //    if (method.PluginDescriptor.SystemName.Equals(activeMethodSystemName, StringComparison.InvariantCultureIgnoreCase))
            //        return true;
            return(false);
        }
 public ExternalAuthFacebookController(ISettingService settingService,
                                       IOAuthProviderFacebookAuthorizer oAuthProviderFacebookAuthorizer,
                                       IOpenAuthenticationService openAuthenticationService,
                                       ExternalAuthenticationSettings externalAuthenticationSettings,
                                       IPermissionService permissionService,
                                       IStoreContext storeContext,
                                       IStoreService storeService,
                                       IWorkContext workContext,
                                       IPluginFinder pluginFinder,
                                       ILocalizationService localizationService)
 {
     this._settingService = settingService;
     this._oAuthProviderFacebookAuthorizer = oAuthProviderFacebookAuthorizer;
     this._openAuthenticationService       = openAuthenticationService;
     this._externalAuthenticationSettings  = externalAuthenticationSettings;
     this._permissionService   = permissionService;
     this._storeContext        = storeContext;
     this._storeService        = storeService;
     this._workContext         = workContext;
     this._pluginFinder        = pluginFinder;
     this._localizationService = localizationService;
 }
 public IdentityController(
     SmartDbContext db,
     UserManager <Customer> userManager,
     SignInManager <Customer> signInManager,
     RoleManager <CustomerRole> roleManager,
     IUserStore <Customer> userStore,
     ITaxService taxService,
     IAddressService addressService,
     IShoppingCartService shoppingCartService,
     IMessageFactory messageFactory,
     IWebHelper webHelper,
     IDateTimeHelper dateTimeHelper,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     RewardPointsSettings rewardPointsSettings)
 {
     _db                             = db;
     _userManager                    = userManager;
     _signInManager                  = signInManager;
     _roleManager                    = roleManager;
     _userStore                      = userStore;
     _taxService                     = taxService;
     _addressService                 = addressService;
     _shoppingCartService            = shoppingCartService;
     _messageFactory                 = messageFactory;
     _webHelper                      = webHelper;
     _dateTimeHelper                 = dateTimeHelper;
     _customerSettings               = customerSettings;
     _captchaSettings                = captchaSettings;
     _dateTimeSettings               = dateTimeSettings;
     _taxSettings                    = taxSettings;
     _localizationSettings           = localizationSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _rewardPointsSettings           = rewardPointsSettings;
 }
示例#4
0
 public PluginController(ExternalAuthenticationSettings externalAuthenticationSettings,
                         ICustomerActivityService customerActivityService,
                         IEventPublisher eventPublisher,
                         IExternalAuthenticationService externalAuthenticationService,
                         ILocalizationService localizationService,
                         IPaymentService paymentService,
                         IPermissionService permissionService,
                         IPluginFinder pluginFinder,
                         IPluginModelFactory pluginModelFactory,
                         ISettingService settingService,
                         IShippingService shippingService,
                         IUploadService uploadService,
                         IWebHelper webHelper,
                         IWidgetService widgetService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         WidgetSettings widgetSettings)
 {
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService        = customerActivityService;
     this._eventPublisher = eventPublisher;
     this._externalAuthenticationService = externalAuthenticationService;
     this._localizationService           = localizationService;
     this._paymentService     = paymentService;
     this._permissionService  = permissionService;
     this._pluginFinder       = pluginFinder;
     this._pluginModelFactory = pluginModelFactory;
     this._settingService     = settingService;
     this._shippingService    = shippingService;
     this._uploadService      = uploadService;
     this._webHelper          = webHelper;
     this._widgetService      = widgetService;
     this._paymentSettings    = paymentSettings;
     this._shippingSettings   = shippingSettings;
     this._taxSettings        = taxSettings;
     this._widgetSettings     = widgetSettings;
 }
示例#5
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
                           IOpenAuthenticationService openAuthenticationService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerActivityService customerActivityService, ILocalizationService localizationService,
                           IWorkContext workContext, CustomerSettings customerSettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           IShoppingCartService shoppingCartService,
                           IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings)
 {
     this._authenticationService       = authenticationService;
     this._openAuthenticationService   = openAuthenticationService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService     = customerActivityService;
     this._localizationService         = localizationService;
     this._workContext      = workContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService            = shoppingCartService;
     this._workflowMessageService         = workflowMessageService;
     this._localizationSettings           = localizationSettings;
 }
示例#6
0
 public ExternalAuthenticationService(CustomerSettings customerSettings,
                                      ExternalAuthenticationSettings externalAuthenticationSettings,
                                      IGrandAuthenticationService authenticationService,
                                      ICustomerActivityService customerActivityService,
                                      ICustomerRegistrationService customerRegistrationService,
                                      ICustomerService customerService,
                                      IEventPublisher eventPublisher,
                                      IGenericAttributeService genericAttributeService,
                                      IHttpContextAccessor httpContextAccessor,
                                      ILocalizationService localizationService,
                                      IPluginFinder pluginFinder,
                                      IRepository <ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
                                      IShoppingCartService shoppingCartService,
                                      IStoreContext storeContext,
                                      IWorkContext workContext,
                                      IWorkflowMessageService workflowMessageService,
                                      LocalizationSettings localizationSettings)
 {
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._authenticationService          = authenticationService;
     this._customerActivityService        = customerActivityService;
     this._customerRegistrationService    = customerRegistrationService;
     this._customerService         = customerService;
     this._eventPublisher          = eventPublisher;
     this._genericAttributeService = genericAttributeService;
     this._httpContextAccessor     = httpContextAccessor;
     this._localizationService     = localizationService;
     this._pluginFinder            = pluginFinder;
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._shoppingCartService    = shoppingCartService;
     this._storeContext           = storeContext;
     this._workContext            = workContext;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings   = localizationSettings;
 }
 public PluginController(IPluginFinder pluginFinder,
                         IPermissionService permissionService,
                         ILanguageService languageService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         ExternalAuthenticationSettings externalAuthenticationSettings,
                         WidgetSettings widgetSettings,
                         IProviderManager providerManager,
                         PluginMediator pluginMediator,
                         ICommonServices services)
 {
     this._pluginFinder      = pluginFinder;
     this._permissionService = permissionService;
     this._languageService   = languageService;
     this._paymentSettings   = paymentSettings;
     this._shippingSettings  = shippingSettings;
     this._taxSettings       = taxSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings  = widgetSettings;
     this._providerManager = providerManager;
     this._pluginMediator  = pluginMediator;
     this._services        = services;
 }
示例#8
0
 public PluginController(IPluginFinder pluginFinder,
                         IOfficialFeedManager officialFeedManager,
                         ILocalizationService localizationService,
                         IWebHelper webHelper,
                         IPermissionService permissionService,
                         ILanguageService languageService,
                         ISettingService settingService,
                         IStoreService storeService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         ExternalAuthenticationSettings externalAuthenticationSettings,
                         WidgetSettings widgetSettings,
                         ICustomerActivityService customerActivityService,
                         ICustomerService customerService,
                         IUploadService uploadService,
                         IEventPublisher eventPublisher)
 {
     this._pluginFinder                   = pluginFinder;
     this._officialFeedManager            = officialFeedManager;
     this._localizationService            = localizationService;
     this._webHelper                      = webHelper;
     this._permissionService              = permissionService;
     this._languageService                = languageService;
     this._settingService                 = settingService;
     this._storeService                   = storeService;
     this._paymentSettings                = paymentSettings;
     this._shippingSettings               = shippingSettings;
     this._taxSettings                    = taxSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings                 = widgetSettings;
     this._customerActivityService        = customerActivityService;
     this._customerService                = customerService;
     this._uploadService                  = uploadService;
     this._eventPublisher                 = eventPublisher;
 }
 public CustomerModelFactory(IAddressModelFactory addressModelFactory,
                             IDateTimeHelper dateTimeHelper,
                             DateTimeSettings dateTimeSettings,
                             TaxSettings taxSettings,
                             ILocalizationService localizationService,
                             IWorkContext workContext,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IGenericAttributeService genericAttributeService,
                             RewardPointsSettings rewardPointsSettings,
                             CustomerSettings customerSettings,
                             AddressSettings addressSettings,
                             ForumSettings forumSettings,
                             OrderSettings orderSettings,
                             ICountryService countryService,
                             IStateProvinceService stateProvinceService,
                             IOrderService orderService,
                             IPictureService pictureService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IOpenAuthenticationService openAuthenticationService,
                             IDownloadService downloadService,
                             IReturnRequestService returnRequestService,
                             MediaSettings mediaSettings,
                             CaptchaSettings captchaSettings,
                             SecuritySettings securitySettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             CatalogSettings catalogSettings,
                             VendorSettings vendorSettings)
 {
     this._addressModelFactory            = addressModelFactory;
     this._dateTimeHelper                 = dateTimeHelper;
     this._dateTimeSettings               = dateTimeSettings;
     this._taxSettings                    = taxSettings;
     this._localizationService            = localizationService;
     this._workContext                    = workContext;
     this._storeContext                   = storeContext;
     this._storeMappingService            = storeMappingService;
     this._customerAttributeParser        = customerAttributeParser;
     this._customerAttributeService       = customerAttributeService;
     this._genericAttributeService        = genericAttributeService;
     this._rewardPointsSettings           = rewardPointsSettings;
     this._customerSettings               = customerSettings;
     this._addressSettings                = addressSettings;
     this._forumSettings                  = forumSettings;
     this._orderSettings                  = orderSettings;
     this._countryService                 = countryService;
     this._stateProvinceService           = stateProvinceService;
     this._orderService                   = orderService;
     this._pictureService                 = pictureService;
     this._newsLetterSubscriptionService  = newsLetterSubscriptionService;
     this._openAuthenticationService      = openAuthenticationService;
     this._downloadService                = downloadService;
     this._returnRequestService           = returnRequestService;
     this._mediaSettings                  = mediaSettings;
     this._captchaSettings                = captchaSettings;
     this._securitySettings               = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._catalogSettings                = catalogSettings;
     this._vendorSettings                 = vendorSettings;
 }
示例#10
0
 public CommonModelFactory(AdminAreaSettings adminAreaSettings,
                           CatalogSettings catalogSettings,
                           CurrencySettings currencySettings,
                           IActionContextAccessor actionContextAccessor,
                           ICurrencyService currencyService,
                           ICustomerService customerService,
                           IDateTimeHelper dateTimeHelper,
                           INopFileProvider fileProvider,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IMeasureService measureService,
                           IOrderService orderService,
                           IPaymentService paymentService,
                           IPluginFinder pluginFinder,
                           IProductService productService,
                           IReturnRequestService returnRequestService,
                           ISearchTermService searchTermService,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWorkContext workContext,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           MeasureSettings measureSettings,
                           PaymentSettings paymentSettings,
                           ShippingSettings shippingSettings,
                           TaxSettings taxSettings,
                           WidgetSettings widgetSettings)
 {
     this._adminAreaSettings              = adminAreaSettings;
     this._catalogSettings                = catalogSettings;
     this._currencySettings               = currencySettings;
     this._actionContextAccessor          = actionContextAccessor;
     this._currencyService                = currencyService;
     this._customerService                = customerService;
     this._dateTimeHelper                 = dateTimeHelper;
     this._fileProvider                   = fileProvider;
     this._httpContextAccessor            = httpContextAccessor;
     this._languageService                = languageService;
     this._localizationService            = localizationService;
     this._maintenanceService             = maintenanceService;
     this._measureService                 = measureService;
     this._orderService                   = orderService;
     this._paymentService                 = paymentService;
     this._pluginFinder                   = pluginFinder;
     this._productService                 = productService;
     this._returnRequestService           = returnRequestService;
     this._searchTermService              = searchTermService;
     this._storeContext                   = storeContext;
     this._storeService                   = storeService;
     this._urlHelperFactory               = urlHelperFactory;
     this._urlRecordService               = urlRecordService;
     this._webHelper                      = webHelper;
     this._workContext                    = workContext;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._measureSettings                = measureSettings;
     this._paymentSettings                = paymentSettings;
     this._shippingSettings               = shippingSettings;
     this._taxSettings                    = taxSettings;
     this._widgetSettings                 = widgetSettings;
 }
        /// <summary>
        /// Check whether external authentication method is active
        /// </summary>
        /// <param name="method">External authentication method</param>
        /// <param name="settings">External authentication settings</param>
        /// <returns>True if method is active; otherwise false</returns>
        public static bool IsMethodActive(this IExternalAuthenticationProvider method, ExternalAuthenticationSettings settings)
        {
            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            if (settings.ActiveAuthenticationMethodSystemNames == null)
            {
                return(false);
            }

            foreach (string activeMethodSystemName in settings.ActiveAuthenticationMethodSystemNames)
            {
                if (method.SystemName.Equals(activeMethodSystemName, StringComparison.OrdinalIgnoreCase))
                {
                    return(true);
                }
            }

            return(false);
        }
示例#12
0
 public CustomerModelFactory(AddressSettings addressSettings,
                             CaptchaSettings captchaSettings,
                             CatalogSettings catalogSettings,
                             CommonSettings commonSettings,
                             CustomerSettings customerSettings,
                             DateTimeSettings dateTimeSettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             ForumSettings forumSettings,
                             GdprSettings gdprSettings,
                             IAddressModelFactory addressModelFactory,
                             IAuthenticationPluginManager authenticationPluginManager,
                             ICountryService countryService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IDateTimeHelper dateTimeHelper,
                             IDownloadService downloadService,
                             IGdprService gdprService,
                             IGenericAttributeService genericAttributeService,
                             ILocalizationService localizationService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IOrderService orderService,
                             IPictureService pictureService,
                             IReturnRequestService returnRequestService,
                             IStateProvinceService stateProvinceService,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             IUrlRecordService urlRecordService,
                             IWorkContext workContext,
                             MediaSettings mediaSettings,
                             OrderSettings orderSettings,
                             RewardPointsSettings rewardPointsSettings,
                             SecuritySettings securitySettings,
                             TaxSettings taxSettings,
                             VendorSettings vendorSettings)
 {
     _addressSettings  = addressSettings;
     _captchaSettings  = captchaSettings;
     _catalogSettings  = catalogSettings;
     _commonSettings   = commonSettings;
     _customerSettings = customerSettings;
     _dateTimeSettings = dateTimeSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _forumSettings               = forumSettings;
     _gdprSettings                = gdprSettings;
     _addressModelFactory         = addressModelFactory;
     _authenticationPluginManager = authenticationPluginManager;
     _countryService              = countryService;
     _customerAttributeParser     = customerAttributeParser;
     _customerAttributeService    = customerAttributeService;
     _dateTimeHelper              = dateTimeHelper;
     _downloadService             = downloadService;
     _gdprService                   = gdprService;
     _genericAttributeService       = genericAttributeService;
     _localizationService           = localizationService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _orderService                  = orderService;
     _pictureService                = pictureService;
     _returnRequestService          = returnRequestService;
     _stateProvinceService          = stateProvinceService;
     _storeContext                  = storeContext;
     _storeMappingService           = storeMappingService;
     _urlRecordService              = urlRecordService;
     _workContext                   = workContext;
     _mediaSettings                 = mediaSettings;
     _orderSettings                 = orderSettings;
     _rewardPointsSettings          = rewardPointsSettings;
     _securitySettings              = securitySettings;
     _taxSettings                   = taxSettings;
     _vendorSettings                = vendorSettings;
 }
示例#13
0
 public ExternalAuthenticationMethodModelFactory(ExternalAuthenticationSettings externalAuthenticationSettings,
                                                 IExternalAuthenticationService externalAuthenticationService)
 {
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._externalAuthenticationService  = externalAuthenticationService;
 }
示例#14
0
 public CustomerViewModelService(
     IExternalAuthenticationService externalAuthenticationService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     ILocalizationService localizationService,
     IDateTimeHelper dateTimeHelper,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IWorkContext workContext,
     IStoreContext storeContext,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IGenericAttributeService genericAttributeService,
     IWorkflowMessageService workflowMessageService,
     IReturnRequestService returnRequestService,
     IStoreMappingService storeMappingService,
     IAddressViewModelService addressViewModelService,
     IOrderService orderService,
     IDownloadService downloadService,
     IPictureService pictureService,
     IProductService productService,
     IAuctionService auctionService,
     INewsletterCategoryService newsletterCategoryService,
     IServiceProvider serviceProvider,
     CustomerSettings customerSettings,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ForumSettings forumSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     SecuritySettings securitySettings,
     CaptchaSettings captchaSettings,
     RewardPointsSettings rewardPointsSettings,
     OrderSettings orderSettings,
     MediaSettings mediaSettings,
     VendorSettings vendorSettings
     )
 {
     this._externalAuthenticationService = externalAuthenticationService;
     this._customerAttributeParser       = customerAttributeParser;
     this._customerAttributeService      = customerAttributeService;
     this._localizationService           = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._workContext                    = workContext;
     this._storeContext                   = storeContext;
     this._countryService                 = countryService;
     this._stateProvinceService           = stateProvinceService;
     this._genericAttributeService        = genericAttributeService;
     this._workflowMessageService         = workflowMessageService;
     this._returnRequestService           = returnRequestService;
     this._storeMappingService            = storeMappingService;
     this._addressViewModelService        = addressViewModelService;
     this._orderService                   = orderService;
     this._downloadService                = downloadService;
     this._pictureService                 = pictureService;
     this._productService                 = productService;
     this._auctionService                 = auctionService;
     this._newsletterCategoryService      = newsletterCategoryService;
     this._serviceProvider                = serviceProvider;
     this._customerSettings               = customerSettings;
     this._dateTimeSettings               = dateTimeSettings;
     this._taxSettings                    = taxSettings;
     this._forumSettings                  = forumSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._securitySettings               = securitySettings;
     this._captchaSettings                = captchaSettings;
     this._rewardPointsSettings           = rewardPointsSettings;
     this._orderSettings                  = orderSettings;
     this._mediaSettings                  = mediaSettings;
     this._vendorSettings                 = vendorSettings;
 }
示例#15
0
 public CustomerController(IAuthenticationService authenticationService,
                           IDateTimeHelper dateTimeHelper,
                           DateTimeSettings dateTimeSettings,
                           TaxSettings taxSettings,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           IStoreMappingService storeMappingService,
                           ICustomerService customerService,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ITaxService taxService,
                           RewardPointsSettings rewardPointsSettings,
                           CustomerSettings customerSettings,
                           AddressSettings addressSettings,
                           ForumSettings forumSettings,
                           OrderSettings orderSettings,
                           IAddressService addressService,
                           ICountryService countryService,
                           IStateProvinceService stateProvinceService,
                           IOrderService orderService,
                           IPictureService pictureService,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           IShoppingCartService shoppingCartService,
                           IOpenAuthenticationService openAuthenticationService,
                           IDownloadService downloadService,
                           IWebHelper webHelper,
                           ICustomerActivityService customerActivityService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IAddressAttributeFormatter addressAttributeFormatter,
                           IReturnRequestService returnRequestService,
                           IEventPublisher eventPublisher,
                           MediaSettings mediaSettings,
                           IWorkflowMessageService workflowMessageService,
                           LocalizationSettings localizationSettings,
                           CaptchaSettings captchaSettings,
                           SecuritySettings securitySettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService       = authenticationService;
     this._dateTimeHelper              = dateTimeHelper;
     this._dateTimeSettings            = dateTimeSettings;
     this._taxSettings                 = taxSettings;
     this._localizationService         = localizationService;
     this._workContext                 = workContext;
     this._storeContext                = storeContext;
     this._storeMappingService         = storeMappingService;
     this._customerService             = customerService;
     this._customerAttributeParser     = customerAttributeParser;
     this._customerAttributeService    = customerAttributeService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService                    = taxService;
     this._rewardPointsSettings          = rewardPointsSettings;
     this._customerSettings              = customerSettings;
     this._addressSettings               = addressSettings;
     this._forumSettings                 = forumSettings;
     this._orderSettings                 = orderSettings;
     this._addressService                = addressService;
     this._countryService                = countryService;
     this._stateProvinceService          = stateProvinceService;
     this._orderService                  = orderService;
     this._pictureService                = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService           = shoppingCartService;
     this._openAuthenticationService     = openAuthenticationService;
     this._downloadService               = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService        = customerActivityService;
     this._addressAttributeParser         = addressAttributeParser;
     this._addressAttributeService        = addressAttributeService;
     this._addressAttributeFormatter      = addressAttributeFormatter;
     this._returnRequestService           = returnRequestService;
     this._eventPublisher                 = eventPublisher;
     this._mediaSettings                  = mediaSettings;
     this._workflowMessageService         = workflowMessageService;
     this._localizationSettings           = localizationSettings;
     this._captchaSettings                = captchaSettings;
     this._securitySettings               = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._storeInformationSettings       = storeInformationSettings;
 }
示例#16
0
 public ExternalAuthFacebookController(IOpenAuthenticationService openAuthenticationService, ExternalAuthenticationSettings externalAuthenticationSettings, ICommonServices services)
 {
     _openAuthenticationService      = openAuthenticationService;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _services = services;
 }
 public AuthenticationPluginManager(ExternalAuthenticationSettings externalAuthenticationSettings,
                                    IPluginService pluginService) : base(pluginService)
 {
     _externalAuthenticationSettings = externalAuthenticationSettings;
 }
 public AuthenticationPluginManager(ExternalAuthenticationSettings externalAuthenticationSettings,
                                    ICustomerService customerService,
                                    IPluginService pluginService) : base(customerService, pluginService)
 {
     _externalAuthenticationSettings = externalAuthenticationSettings;
 }
示例#19
0
 public LoginController(
     ICommonServices services,
     IAdCampaignService adCampaignService,
     IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings, TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext, IStoreContext storeContext,
     ICustomerService customerService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService, RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings, AddressSettings addressSettings, ForumSettings forumSettings,
     OrderSettings orderSettings, IAddressService addressService,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IOrderProcessingService orderProcessingService, IOrderService orderService,
     ICurrencyService currencyService,
     IPaymentService paymentService,
     IPriceFormatter priceFormatter,
     IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
     IForumService forumService, IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IDownloadService downloadService, IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     ProductUrlHelper productUrlHelper,
     MediaSettings mediaSettings,
     LocalizationSettings localizationSettings,
     //CaptchaSettings captchaSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     PluginMediator pluginMediator,
     IPermissionService permissionService,
     IProductService productService)
 {
     _services = services;
     _authenticationService       = authenticationService;
     _dateTimeHelper              = dateTimeHelper;
     _dateTimeSettings            = dateTimeSettings;
     _taxSettings                 = taxSettings;
     _localizationService         = localizationService;
     _workContext                 = workContext;
     _storeContext                = storeContext;
     _customerService             = customerService;
     _genericAttributeService     = genericAttributeService;
     _customerRegistrationService = customerRegistrationService;
     _taxService                     = taxService;
     _rewardPointsSettings           = rewardPointsSettings;
     _customerSettings               = customerSettings;
     _addressSettings                = addressSettings;
     _forumSettings                  = forumSettings;
     _orderSettings                  = orderSettings;
     _addressService                 = addressService;
     _countryService                 = countryService;
     _stateProvinceService           = stateProvinceService;
     _orderProcessingService         = orderProcessingService;
     _orderTotalCalculationService   = orderTotalCalculationService;
     _orderService                   = orderService;
     _currencyService                = currencyService;
     _paymentService                 = paymentService;
     _priceFormatter                 = priceFormatter;
     _pictureService                 = pictureService;
     _newsLetterSubscriptionService  = newsLetterSubscriptionService;
     _forumService                   = forumService;
     _shoppingCartService            = shoppingCartService;
     _openAuthenticationService      = openAuthenticationService;
     _backInStockSubscriptionService = backInStockSubscriptionService;
     _downloadService                = downloadService;
     _webHelper = webHelper;
     _customerActivityService = customerActivityService;
     _productUrlHelper        = productUrlHelper;
     _adCampaignService       = adCampaignService;
     _mediaSettings           = mediaSettings;
     _localizationSettings    = localizationSettings;
     //_captchaSettings = captchaSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _pluginMediator    = pluginMediator;
     _permissionService = permissionService;
     _productService    = productService;
 }
示例#20
0
 public ExternalAuthenticationVerifier(ExternalAuthenticationSettings settings)
 {
     _externalAuthSettings = settings;
 }
示例#21
0
 /// <summary>
 /// Check whether external authentication method is active
 /// </summary>
 /// <param name="method">External authentication method</param>
 /// <param name="settings">External authentication settings</param>
 /// <returns>True if method is active; otherwise false</returns>
 public static bool IsMethodActive(this IExternalAuthenticationMethod method, ExternalAuthenticationSettings settings)
 {
     return(false);
 }
        public static bool IsMethodActive(this Provider <IExternalAuthenticationMethod> method, ExternalAuthenticationSettings settings)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            if (settings.ActiveAuthenticationMethodSystemNames == null)
            {
                return(false);
            }

            return(settings.ActiveAuthenticationMethodSystemNames.Contains(method.Metadata.SystemName, StringComparer.OrdinalIgnoreCase));
        }