コード例 #1
0
 public OpenAuthenticationService(IRepository<ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IPluginFinder pluginFinder,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IAccountService accountService)
 {
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._pluginFinder = pluginFinder;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._accountService = accountService;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public FacebookProviderAuthorizer(IExternalAuthorizer authorizer,
     IOpenAuthenticationService openAuthenticationService,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     FacebookExternalAuthSettings facebookExternalAuthSettings,
     HttpContextBase httpContext)
 {
     this._authorizer = authorizer;
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._facebookExternalAuthSettings = facebookExternalAuthSettings;
     this._httpContext = httpContext;
 }
コード例 #4
0
 public ExternalAuthFacebookController(ISettingService settingService,
     FacebookExternalAuthSettings facebookExternalAuthSettings,
     IOAuthProviderFacebookAuthorizer oAuthProviderFacebookAuthorizer,
     IOpenAuthenticationService openAuthenticationService,
     ExternalAuthenticationSettings externalAuthenticationSettings)
 {
     this._settingService = settingService;
     this._facebookExternalAuthSettings = facebookExternalAuthSettings;
     this._oAuthProviderFacebookAuthorizer = oAuthProviderFacebookAuthorizer;
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
 }
コード例 #5
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;
        }
コード例 #6
0
 public PluginController(IPluginFinder pluginFinder,
     ILocalizationService localizationService,
     IWebHelper webHelper,
     IPermissionService permissionService,
     ILanguageService languageService,
     ISettingService settingService,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     WidgetSettings widgetSettings)
 {
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
     this._webHelper = webHelper;
     this._permissionService = permissionService;
     this._languageService = languageService;
     this._settingService = settingService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings = widgetSettings;
 }
コード例 #7
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     IAccountRegistrationService accountRegistrationService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity, AccountSettings accountSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._accountRegistrationService = accountRegistrationService;
     this._localizationService = localizationService;
     this._currentActivity = currentActivity;
     this._accountSettings = accountSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
 }