public ExternalAuthOpenIdController(IOpenIdProviderAuthorizer openIdProviderAuthorizer,
     IOpenAuthenticationService openAuthenticationService,
     ExternalAuthenticationSettings externalAuthenticationSettings)
 {
     this._openIdProviderAuthorizer = openIdProviderAuthorizer;
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
 }
예제 #2
0
 public OpenAuthenticationService(IRepository<ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IPluginFinder pluginFinder,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ICustomerService customerService)
 {
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._pluginFinder = pluginFinder;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerService = customerService;
 }
 public ExternalAuthenticationController(IOpenAuthenticationService openAuthenticationService, 
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ISettingService settingService, IPermissionService permissionService,
     IPluginFinder pluginFinder)
 {
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
     this._pluginFinder = pluginFinder;
 }
 public FacebookProviderAuthorizer(IExternalAuthorizer authorizer,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     FacebookExternalAuthSettings facebookExternalAuthSettings,
     HttpContextBase httpContext,
     IWebHelper webHelper)
 {
     this._authorizer = authorizer;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._facebookExternalAuthSettings = facebookExternalAuthSettings;
     this._httpContext = httpContext;
     this._webHelper = webHelper;
 }
 public ExternalAuthFacebookController(ISettingService settingService,
     FacebookExternalAuthSettings facebookExternalAuthSettings,
     IOAuthProviderFacebookAuthorizer oAuthProviderFacebookAuthorizer,
     IOpenAuthenticationService openAuthenticationService,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IPermissionService permissionService)
 {
     this._settingService = settingService;
     this._facebookExternalAuthSettings = facebookExternalAuthSettings;
     this._oAuthProviderFacebookAuthorizer = oAuthProviderFacebookAuthorizer;
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._permissionService = permissionService;
 }
        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;
        }
예제 #7
0
 public PluginController(IPluginFinder pluginFinder,
     ILocalizationService localizationService, IWebHelper webHelper,
     IPermissionService permissionService, ILanguageService languageService,
     ISettingService settingService,
     PaymentSettings paymentSettings,ShippingSettings shippingSettings,
     TaxSettings taxSettings, ExternalAuthenticationSettings externalAuthenticationSettings, 
     WidgetSettings widgetSettings)
 {
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
     this._webHelper = webHelper;
     this._permissionService = permissionService;
     this._languageService = languageService;
     this._settingService = settingService;
     this._paymentSettings = paymentSettings;
     this._shippingSettings = shippingSettings;
     this._taxSettings = taxSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings = widgetSettings;
 }
예제 #8
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;
 }
예제 #9
0
        public CustomerController(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, IPriceFormatter priceFormatter,
            IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
            IForumService forumService, IShoppingCartService shoppingCartService,
            IOpenAuthenticationService openAuthenticationService, 
            IBackInStockSubscriptionService backInStockSubscriptionService, 
            IDownloadService downloadService, IWebHelper webHelper,
            ICustomerActivityService customerActivityService, MediaSettings mediaSettings,
            IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
            CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings)
        {
            this._authenticationService = authenticationService;
            this._dateTimeHelper = dateTimeHelper;
            this._dateTimeSettings = dateTimeSettings;
            this._taxSettings = taxSettings;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._customerService = customerService;
            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._orderProcessingService = orderProcessingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._orderService = orderService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._forumService = forumService;
            this._shoppingCartService = shoppingCartService;
            this._openAuthenticationService = openAuthenticationService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._downloadService = downloadService;
            this._webHelper = webHelper;
            this._customerActivityService = customerActivityService;

            this._mediaSettings = mediaSettings;
            this._workflowMessageService = workflowMessageService;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
        }