public CollectibleExportService(IProductService productService, 
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,   //not used
     IStateProvinceService stateProvinceService,
     IConsignorService consignorService,
     IAuthenticationService authenticationService,
     ILogger logger,
     IRepository<AUCountryLotRecord> countrylotRepo,
     IRepository<AUStateProvinceLotRecord> stateprovincelotRepo
     )
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._consignorService = consignorService;
     this._authenticationService = authenticationService;
     this._logger = logger;                          //NJM: AUConsignor
     this._countrylotRepo = countrylotRepo;
     this._stateprovincelotRepo = stateprovincelotRepo;
 }
 public WebWorkContext(HttpContextBase httpContext,
     ICustomerService customerService,
     IVendorService vendorService,
     IStoreContext storeContext,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     ICurrencyService currencyService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings, 
     CurrencySettings currencySettings,
     LocalizationSettings localizationSettings,
     IUserAgentHelper userAgentHelper,
     IStoreMappingService storeMappingService)
 {
     this._httpContext = httpContext;
     this._customerService = customerService;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._currencyService = currencyService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._currencySettings = currencySettings;
     this._localizationSettings = localizationSettings;
     this._userAgentHelper = userAgentHelper;
     this._storeMappingService = storeMappingService;
 }
 public UserLogin_Steps()
 {
     var mock = new Mock<IAuthenticationService>();
     mock.Expect(x => x.IsValidLogin("admin", "password")).Returns(true);
     mock.Expect(x => x.IsValidLogin(It.IsAny<string>(),It.IsAny<string>())).Returns(false);
     _authService = mock.Object;
 }
예제 #4
0
		public AuthenticationViewModel(IAuthenticationService authenticationService)
		{
			_authenticationService = authenticationService;
			_loginCommand = new DelegateCommand(Login, CanLogin);
			_logoutCommand = new DelegateCommand(Logout, CanLogout);
			_showViewCommand = new DelegateCommand(ShowView, null);
		}
예제 #5
0
        // TODO: unused: private bool m_AllowForeignGuests;

        public NeighbourPostHandler(INeighbourService service, IAuthenticationService authentication) :
            base("POST", "/region")
        {
            m_NeighbourService = service;
            m_AuthenticationService = authentication;
            // TODO: unused: m_AllowForeignGuests = foreignGuests;
        }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CmsMembershipProvider" /> class.
 /// </summary>
 /// <param name="userService">The user service.</param>
 /// <param name="authenticationService">The authentication service.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="membershipName">Name of the membership.</param>
 internal CmsMembershipProvider(IUserService userService, IAuthenticationService authenticationService, IUnitOfWork unitOfWork, string membershipName)
 {
     this.authenticationService = authenticationService;
     this.userService = userService;
     this.unitOfWork = unitOfWork;
     this.membershipName = membershipName;
 }
        public WebWorkContext(Func<string, ICacheManager> cacheManager,
            HttpContextBase httpContext,
            ICustomerService customerService,
			IStoreContext storeContext,
            IAuthenticationService authenticationService,
            ILanguageService languageService,
            ICurrencyService currencyService,
			IGenericAttributeService attrService,
            TaxSettings taxSettings, CurrencySettings currencySettings,
            LocalizationSettings localizationSettings, Lazy<ITaxService> taxService,
            IStoreService storeService, ISettingService settingService,
			IUserAgent userAgent)
        {
            this._cacheManager = cacheManager("static");
            this._httpContext = httpContext;
            this._customerService = customerService;
            this._storeContext = storeContext;
            this._authenticationService = authenticationService;
            this._languageService = languageService;
            this._attrService = attrService;
            this._currencyService = currencyService;
            this._taxSettings = taxSettings;
            this._taxService = taxService;
            this._currencySettings = currencySettings;
            this._localizationSettings = localizationSettings;
            this._storeService = storeService;
            this._settingService = settingService;
            this._userAgent = userAgent;
        }
예제 #8
0
 public void TestSetup()
 {
     IConfig _config = _mock.CreateMock<IConfig>();
     UserRepositoryFactory factory = new CustomerRepositoryFactory(_config);
     ServiceLocator serviceLocator = new ServiceLocator(_config);
     _service = serviceLocator.FindService(typeof(IAuthenticationService));
 }
예제 #9
0
        public void verify_receive_appropriate_error_message_when_user_provides_a_bad_user_name_or_password()
        {
            AuthenticationStatus authStatus = null;
            Story authenticateUserStory = new Story("Authenticate User");

            authenticateUserStory.AsA("Unauthenticated user")
                .IWant("supply my user name and password to the login form")
                .SoThat("I can  authenticate to the application");

            authenticateUserStory
                .WithScenario("User provides an invalid user name")
                .Given("My user name and password are ", "Big Daddy", "Gobldegook", delegate(string userName, string password) { UserRepositoryFactory factory = _mock.DynamicMock<UserRepositoryFactory>();

                                                                                                                                 using (_mock.Record())
                                                                                                                                 {
                                                                                                                                    Expect.Call(factory.Create(userName, password))
                                                                                                                                        .Return(_mock.DynamicMock<IUserRepository>());
                                                                                                                                 }

                                                                                                                                 _user = factory.Create(userName, password); })
                .When("I authenticate the user", delegate {_service = _mock.DynamicMock<IAuthenticationService>();
                                                            using (_mock.Record())
                                                            {
                                                                Expect.Call(_service.Authenticate(_user))
                                                                    .Return(new AuthenticationStatus(new Exception("Bad Username or Password")));
                                                            }
                                                           authStatus = _service.Authenticate(_user);})
                .Then("I should receive an Authentication status of", Status.Failed, delegate(Status expectedStatus) {Assert.AreEqual(expectedStatus, authStatus.Status);});
        }
예제 #10
0
        public void SetUp()
        {
            mockedAuthenticationService = MockRepository.GenerateMock<IAuthenticationService>();
            mockedBlogRepository = MockRepository.GenerateMock<IBlogRepository>();

            sut = new AdminController(mockedAuthenticationService, mockedBlogRepository);
        }
예제 #11
0
 public PostController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus)
     : base(commandBus)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
     _authenticationService = authenticationService;
 }
 public void Setup()
 {
     _userRepository = new Mock<IUserRepository>();
     _dataFactory = new Mock<IDataFactory>();
     _dataFactory.Setup(x => x.UserRepository).Returns(_userRepository.Object);
     _authenticationService = new AuthenticationService(_dataFactory.Object);
 }
예제 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="userService">The user service.</param>
 /// <param name="authenticationService">The authentication service.</param>
 /// <param name="messageBus">The message bus.</param>
 /// <param name="membershipSettings"></param>
 public AccountController(IUserAccountService userService, IAuthenticationService authenticationService, IMessageBus messageBus, IMembershipSettings membershipSettings)
 {
     _membershipSettings = membershipSettings;
     _messageBus = messageBus;
     _userService = userService;
     _authenticationService = authenticationService;
 }
예제 #14
0
 public SessionController(IFormsAuthentication formsAuthentication, 
     IAuthenticationService authenticationService, IProductoService productoService)
 {
     this.formsAuthentication = formsAuthentication;
     this.authenticationService = authenticationService;
     this.productoService = productoService;
 }
예제 #15
0
 public AuthenticationFilter(IAuthenticationRedirector redirector, IAuthenticationService authentication, ICurrentChain currentChain, SecuritySettings settings)
 {
     _redirector = redirector;
     _authentication = authentication;
     _currentChain = currentChain;
     _settings = settings;
 }
예제 #16
0
 public LoginViewModel(IAuthenticationService authenticationService, IAppSettings appSettings, IDialogService dialogService, IStatisticsService statisticsService)
 {
     _authenticationService = authenticationService;
     _appSettings = appSettings;
     _dialogService = dialogService;
     _statisticsService = statisticsService;
 }
예제 #17
0
        public DonorService(IMinistryPlatformService ministryPlatformService, IProgramService programService, ICommunicationService communicationService, IAuthenticationService authenticationService, IContactService contactService,  IConfigurationWrapper configuration, ICryptoProvider crypto)
            : base(authenticationService, configuration)
        {
            _ministryPlatformService = ministryPlatformService;
            _programService = programService;
            _communicationService = communicationService;
            _contactService = contactService;
            _crypto = crypto;

            _donorPageId = configuration.GetConfigIntValue("Donors");
            _donationPageId = configuration.GetConfigIntValue("Donations");
            _donationDistributionPageId = configuration.GetConfigIntValue("Distributions");
            _donorAccountsPageId = configuration.GetConfigIntValue("DonorAccounts");
            _findDonorByAccountPageViewId = configuration.GetConfigIntValue("FindDonorByAccountPageView");
            _donationStatusesPageId = configuration.GetConfigIntValue("DonationStatus");
            _donorLookupByEncryptedAccount = configuration.GetConfigIntValue("DonorLookupByEncryptedAccount");
            _myHouseholdDonationDistributions = configuration.GetConfigIntValue("MyHouseholdDonationDistributions");
            _recurringGiftBySubscription = configuration.GetConfigIntValue("RecurringGiftBySubscription");
            _recurringGiftPageId = configuration.GetConfigIntValue("RecurringGifts");
            _myDonorPageId = configuration.GetConfigIntValue("MyDonor");
            _myHouseholdDonationRecurringGifts = configuration.GetConfigIntValue("MyHouseholdDonationRecurringGifts");
            _myHouseholdRecurringGiftsApiPageView = configuration.GetConfigIntValue("MyHouseholdRecurringGiftsApiPageView");
            _myHouseholdPledges = configuration.GetConfigIntValue("MyHouseholdPledges");

            _dateTimeFormat = new DateTimeFormatInfo
            {
                AMDesignator = "am",
                PMDesignator = "pm"
            };

        }
 public SignOutSettingsPageViewModel()
 {
     m_authenticationHandler = AuthenticationService.Instance;
     m_dialogSService = DialogService.Instance;
     m_settingsService = SettingsService.Instance;
     UserName = m_settingsService.User?.UserName; 
 }
예제 #19
0
 public ReportPostAdminController(
     IOrchardServices orchardServices,
     IForumService forumService,
     IThreadService threadService,
     IPostService postService,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     IAuthorizationService authorizationService,
     IAuthenticationService authenticationService,
     ISubscriptionService subscriptionService,
     IReportPostService reportPostService,
     ICountersService countersService
     )
 {
     _orchardServices = orchardServices;
     _forumService = forumService;
     _threadService = threadService;
     _postService = postService;
     _siteService = siteService;
     _subscriptionService = subscriptionService;
     _authorizationService = authorizationService;
     _authenticationService = authenticationService;
     _reportPostService = reportPostService;
     _countersService = countersService;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
        public void Initialize (ILoginService service, IConfigSource config, IRegistryCore registry)
        {
            IConfig loginServerConfig = config.Configs ["LoginService"];
            if (loginServerConfig != null) {
                m_UseTOS = loginServerConfig.GetBoolean ("UseTermsOfServiceOnFirstLogin", false);
                m_TOSLocation = loginServerConfig.GetString ("FileNameOfTOS", "");

                if (m_TOSLocation.Length > 0) {
                    // html appears to be broken
                    if (m_TOSLocation.ToLower ().StartsWith ("http://", StringComparison.Ordinal))
                        m_TOSLocation = m_TOSLocation.Replace ("ServersHostname", MainServer.Instance.HostName);
                    else {
                        var simBase = registry.RequestModuleInterface<ISimulationBase> ();
                        var TOSFileName = PathHelpers.VerifyReadFile (m_TOSLocation, ".txt", simBase.DefaultDataPath);
                        if (TOSFileName == "") {
                            m_UseTOS = false;
                            MainConsole.Instance.ErrorFormat ("Unable to locate the Terms of Service file : '{0}'", m_TOSLocation);
                            MainConsole.Instance.Error (" Show 'Terms of Service' for a new user login is disabled!");
                        } else
                            m_TOSLocation = TOSFileName;
                    }
                } else
                    m_UseTOS = false;

            }
            m_AuthenticationService = registry.RequestModuleInterface<IAuthenticationService> ();
            m_LoginService = service;
        }
예제 #21
0
 public HomeController(IBusinessManagerContainer businessManagerContainer,
     IQueryContainer queryContainer)
 {
     this.businessManagerContainer = businessManagerContainer;
     this.queryContainer = queryContainer;
     this.authenticationService = ObjectFactory.GetInstance<AuthenticationService>();
 }
예제 #22
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService, 
     ICustomerActivityService customerActivityService, 
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IShoppingCartService shoppingCartService,
     IWorkflowMessageService workflowMessageService,
     IEventPublisher eventPublisher,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService = customerActivityService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService = shoppingCartService;
     this._workflowMessageService = workflowMessageService;
     this._eventPublisher = eventPublisher;
     this._localizationSettings = localizationSettings;
 }
예제 #23
0
        public CASClient(
            ShellSettings settings, 
            ITicketValidatorFactory ticketValidatorFactory,
            IRequestEvaluator requestEvaluator,
            IClock clock,
            IUrlUtil urlUtil,
            IAuthenticationService authenticationService,
            ICasServices casServices) {
            _settings = settings;
            _ticketValidatorFactory = ticketValidatorFactory;
            _requestEvaluator = requestEvaluator;
            _clock = clock;
            _urlUtil = urlUtil;
            _authenticationService = authenticationService;
            _casServices = casServices;

            _xmlNamespaceManager = new XmlNamespaceManager(_xmlNameTable);
            _xmlNamespaceManager.AddNamespace("cas", "http://www.yale.edu/tp/cas");
            _xmlNamespaceManager.AddNamespace("saml", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("saml2", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("samlp", "urn: oasis:names:tc:SAML:1.0:protocol");

            Logger = NullLogger.Instance;
            T = NullLocalizer.Instance;
        }
예제 #24
0
 public SignInWizzardPageViewModel()
 {
     m_authenticationService = AuthenticationService.Instance;
     m_dialogSService = DialogService.Instance;
     m_settingsService = SettingsService.Instance;
     UserName = m_settingsService.User?.UserName; 
 }
        public SGAccountController()
        {
            this.membershipService = new MembershipService(Membership.Provider);

            this.authenticationService = new AuthenticationService(membershipService, new FormsAuthenticationService());
            this.formsAuthenticationService = new FormsAuthenticationService();
        }
예제 #26
0
 public PlayerManager(IDataService dataService, IAuthenticationService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService)
 {
     this.m_dataService = dataService;
     this.m_accountService = accountService;
     this.PlayerService = playerService;
     this.m_dialogService = dialogservice;
     this.m_resourceService = resourceService;
     Messenger.Default.Register<MediaStateChangedArgs>(this, args =>
     {
         switch (args.MediaState)
         {
             case MediaState.Opened:
                 OnMediaOpened();
                 break;
             case MediaState.Ended:
                 this.OnMediaEnded();
                 break;
             case MediaState.NextRequested:
                 ExecuteNextTrack();
                 break;
             case MediaState.PreviousRequested:
                 ExecutePreviousTrack();
                 break;
             case MediaState.DownloadCompleted:
                 PrepareNextTrack();
                 break;
         }
     });
 }
예제 #27
0
 public AccountService(IConfigurationWrapper configurationWrapper, ICommunicationService communicationService, IAuthenticationService authenticationService, ISubscriptionsService subscriptionService)
 {
     this._configurationWrapper = configurationWrapper;
     this._communicationService = communicationService;
     this._authenticationService = authenticationService;
     this._subscriptionsService = subscriptionService;
 }
예제 #28
0
 public UserQueryService(
     IMathHubDbContext MathHubDbContext,
     IAuthenticationService authenticationService)
 {
     ctx = MathHubDbContext.GetDbContext();
     this._authenticationService = authenticationService;
 }
예제 #29
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationService">The <see cref="AuthenticationService"/></param>
 /// <param name="pluginsService">The <see cref="Core.Services.PluginsService"/></param>
 /// <param name="cultureService">The <see cref="Core.Services.CultureService"/></param>
 /// <param name="formsAuthentication">The <see cref="FormsAuthentication"/> wrapper</param>
 public LoginController(IAuthenticationService authenticationService, IPluginsService pluginsService, ICultureService cultureService, IFormsAuthentication formsAuthentication)
 {
     this.authenticationService = authenticationService;
     this.pluginsService = pluginsService;
     this.cultureService = cultureService;
     this.formsAuthentication = formsAuthentication;
 }
예제 #30
0
        // TODO: unused: private bool m_AllowForeignGuests;

        public AgentPostHandler(ISimulationService service, IAuthenticationService authentication, bool foreignGuests) :
            base("POST", "/agent")
        {
            m_SimulationService = service;
            m_AuthenticationService = authentication;
            // TODO: unused: m_AllowForeignGuests = foreignGuests;
        }
예제 #31
0
 public AuthenticationController(IServiceFactory serviceFactory)
 {
     _authenticationService = serviceFactory.AuthenticationService;
 }
 public NavigationService(IAuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
 }
 /// <summary>
 /// Initializes a new instance of the MobileConnectInterface class
 /// </summary>
 /// <param name="config">Configuration options</param>
 /// <param name="discovery">Instance of IDiscovery concrete implementation</param>
 /// <param name="authentication">Instance of IAuthentication concrete implementation</param>
 /// <param name="identity">Instance of IIdentityService concrete implementation</param>
 /// <param name="jwks">Instance of IJWKeysetService concrete implementation</param>
 public MobileConnectInterface(MobileConnectConfig config, IDiscoveryService discovery, IAuthenticationService authentication, IIdentityService identity, IJWKeysetService jwks)
 {
     this._discovery      = discovery;
     this._authentication = authentication;
     this._identity       = identity;
     this._jwks           = jwks;
     this._config         = config;
 }
 public AccountController(IAuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
 }
예제 #35
0
 public AuthController(IAuthenticationService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
 public MenuViewModel(IAuthenticationService authenticationService, INativePushNotificationService nativePushNotificationService)
 {
     _authenticationService         = authenticationService;
     _nativePushNotificationService = nativePushNotificationService;
     InitMenuItems();
 }
예제 #37
0
 public BingSpeechService(IAuthenticationService authService, string os)
 {
     authenticationService = authService;
     operatingSystem       = os;
 }
예제 #38
0
 public SignInHandler(IAuthenticationService authenticationService, IMapper mapper)
 {
     _authenticationService = authenticationService;
     _mapper = mapper;
 }
예제 #39
0
 public CreateMeetingHandler(MeetingsContext db, IAuthenticationService auth)
 {
     this.db   = db;
     this.auth = auth;
 }
예제 #40
0
 public TokenController(UserManager <ApiUser> userManager,
                        IAuthenticationService authenticationService)
 {
     _usermanager           = userManager;
     _authenticationService = authenticationService;
 }
예제 #41
0
 public AuthenticationViewModel(IAuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
     _loginCommand          = new DelegateCommand(Login, CanLogin);
     _logoutCommand         = new DelegateCommand(Logout, CanLogout);
 }
예제 #42
0
        public GridService(IConfigSource config)
            : base(config)
        {
            m_log.DebugFormat("[GRID SERVICE]: Starting...");

            m_config = config;
            IConfig gridConfig = config.Configs["GridService"];

            bool suppressConsoleCommands = false;

            if (gridConfig != null)
            {
                m_DeleteOnUnregister = gridConfig.GetBoolean("DeleteOnUnregister", true);

                string authService = gridConfig.GetString("AuthenticationService", String.Empty);

                if (authService != String.Empty)
                {
                    Object[] args = new Object[] { config };
                    m_AuthenticationService = ServerUtils.LoadPlugin <IAuthenticationService>(authService, args);
                }
                m_AllowDuplicateNames     = gridConfig.GetBoolean("AllowDuplicateNames", m_AllowDuplicateNames);
                m_AllowHypergridMapSearch = gridConfig.GetBoolean("AllowHypergridMapSearch", m_AllowHypergridMapSearch);

                // This service is also used locally by a simulator running in grid mode.  This switches prevents
                // inappropriate console commands from being registered
                suppressConsoleCommands = gridConfig.GetBoolean("SuppressConsoleCommands", suppressConsoleCommands);
            }

            if (m_RootInstance == null)
            {
                m_RootInstance = this;

                if (!suppressConsoleCommands && MainConsole.Instance != null)
                {
                    MainConsole.Instance.Commands.AddCommand("Regions", true,
                                                             "deregister region id",
                                                             "deregister region id <region-id>+",
                                                             "Deregister a region manually.",
                                                             String.Empty,
                                                             HandleDeregisterRegion);

                    MainConsole.Instance.Commands.AddCommand("Regions", true,
                                                             "show regions",
                                                             "show regions",
                                                             "Show details on all regions",
                                                             String.Empty,
                                                             HandleShowRegions);

                    MainConsole.Instance.Commands.AddCommand("Regions", true,
                                                             "show region name",
                                                             "show region name <Region name>",
                                                             "Show details on a region",
                                                             String.Empty,
                                                             HandleShowRegion);

                    MainConsole.Instance.Commands.AddCommand("Regions", true,
                                                             "show region at",
                                                             "show region at <x-coord> <y-coord>",
                                                             "Show details on a region at the given co-ordinate.",
                                                             "For example, show region at 1000 1000",
                                                             HandleShowRegionAt);

                    MainConsole.Instance.Commands.AddCommand("General", true,
                                                             "show grid size",
                                                             "show grid size",
                                                             "Show the current grid size (excluding hyperlink references)",
                                                             String.Empty,
                                                             HandleShowGridSize);

                    MainConsole.Instance.Commands.AddCommand("Regions", true,
                                                             "set region flags",
                                                             "set region flags <Region name> <flags>",
                                                             "Set database flags for region",
                                                             String.Empty,
                                                             HandleSetFlags);
                }

                if (!suppressConsoleCommands)
                {
                    SetExtraServiceURLs(config);
                }

                m_HypergridLinker = new HypergridLinker(m_config, this, m_Database);
            }
        }
예제 #43
0
 public AuthorizationContextProvider(IHttpContextAccessor httpContextAccessor, IEncodingService encodingService, IAuthenticationService authenticationService)
 {
     _httpContextAccessor   = httpContextAccessor;
     _encodingService       = encodingService;
     _authenticationService = authenticationService;
 }
예제 #44
0
 public GraphController(IAuthenticationService _authenticationService)
 {
     authenticationService = _authenticationService;
 }
예제 #45
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApprovalsDialog"/> class.
 /// </summary>
 /// <param name="authenticationService">The authenticationService.</param>
 /// <param name="vstsService">The <see cref="IVstsService"/>.</param>
 public ApprovalsDialog(IAuthenticationService authenticationService, IVstsService vstsService)
     : base(authenticationService, vstsService)
 {
 }
예제 #46
0
 public LoginViewModel(IAuthenticationService authenticationService, IDialogService dialogService)
 {
     _authenticationService = authenticationService;
     _dialogService         = dialogService;
 }
예제 #47
0
 // Use Dependency Injection for this!
 public ContractService(ISession session, IAuthenticationService authService)
 {
     // assign the arguments to fields here
 }
예제 #48
0
 /// <summary>
 /// Constructor to be added to the dependency injection container
 /// </summary>
 /// <param name="context">EF's database context</param>
 /// <param name="authenticationService">Authentication service for users</param>
 public HairLengthLinksContext(hairdressing_project_dbContext context, IAuthenticationService authenticationService)
 {
     _context = context;
     _authenticationService = authenticationService;
 }
예제 #49
0
 public AuthenticationRepository(IAuthenticationService service)
 {
     authenticationService = service;
 }
예제 #50
0
 public void InitDb()
 {
     this.authenticationService = Config.AuthenticationService();
     this.sessionFactory        = Config.ConfigureDatabase();
     this.repositoriesFactory   = new RepositoriesFactory();
 }
예제 #51
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginCommand" /> class.
 /// </summary>
 /// <param name="authenticationService">The authentication service.</param>
 public LoginCommand(IAuthenticationService authenticationService)
 {
     this.authenticationService = authenticationService;
 }
예제 #52
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="authenticationService">Provides access to authentication related code.</param>
 /// <param name="formHelperService">Provides access to form helper methods for tasks such as creating form results.</param>
 public CreateUserFormService(IAuthenticationService authenticationService, IFormHelperService formHelperService)
 {
     _authenticationService = authenticationService;
     _formHelperService     = formHelperService;
 }
예제 #53
0
 public AppShellViewModel(INavigationService navigationService, IAuthenticationService authenticationService)
 {
     _navigationService = navigationService;
 }
예제 #54
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public LoginViewModel(
     INavigationService navigationService, IAuthenticationService authService)
 {
     _navigationService = navigationService;
     _authService       = authService;
 }
예제 #55
0
 public ChatController(IAuthenticationService authenticationService, ILogger <ChatController> logger)
 {
     _authenticationService = authenticationService;
     _logger = logger;
 }
예제 #56
0
 public LogInController(IAuthenticationService authenticationService)
 {
     this._authenticationService = authenticationService;
 }
예제 #57
0
 public AccountService(UserManager <User> userManager, RoleManager <IdentityRole> roleManager, JwtSettings jwtSettings, IAuthenticationService authenticationService, IMapper mapper)
 {
     _userManager           = userManager;
     _roleManager           = roleManager;
     _jwtSettings           = jwtSettings;
     _authenticationService = authenticationService;
     _mapper = mapper;
 }
예제 #58
0
 public IscService()
 {
     UnitOfWork = ServiceLocator.Current.GetInstance<IUnitOfWork>();
     ContextProvider = ServiceLocator.Current.GetInstance<IContextProvider>();
     AuthenticationService = ServiceLocator.Current.GetInstance<IAuthenticationService>();
 }
예제 #59
0
 public LoginOldViewModel(ICredentialsService credentials, IAuthenticationService authentication, IApplicationNavigationService navigation)
 {
     this._credentials    = credentials;
     this._authentication = authentication;
     this._navigation     = navigation;
 }
 public SessionsController(IAuthenticationService authService, ILogger logger)
 {
     _authService = authService;
     _logger      = logger;
 }