コード例 #1
0
 public PhanQuyenController(IAccount298Repository account298Repository, IUnitOfWork unitOfWork, IFormsAuthentication formAuthentication, HttpContextBase httpContext)
 {
     _account298Repository   = account298Repository;
     _unitOfWork             = unitOfWork;
     this.formAuthentication = formAuthentication;
     _httpContext            = httpContext;
 }
コード例 #2
0
 public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
                          IMembershipService membershipService)
 {
     _customerService     = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService   = membershipService;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemsController"/> class.
 /// </summary>
 /// <param name="itemsService">
 /// The items Service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 public ItemsController(
     IItemsService itemsService,
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.itemsService = itemsService;
 }
コード例 #4
0
        protected AuthenticationPage(IFormsAuthentication formsAuthentication)
        {
            if(formsAuthentication == null)
                throw new ArgumentNullException("formsAuthentication");

            this._formsAuthentication = formsAuthentication;
        }
コード例 #5
0
 public UploadBotController(ITeamManagementCommands teamCommands, IFormsAuthentication formsAuthentication, IConfigurationRepository configurationRepository, MatchStarter matchStarter)
 {
     _teamCommands = teamCommands;
       _formsAuthentication = formsAuthentication;
       _configurationRepository = configurationRepository;
       _matchStarter = matchStarter;
 }
コード例 #6
0
        public SamplePushUserRegistrationService(HttpContextBase context, WebOperationContext webOperationContext, IFormsAuthentication formsAuth, IMembershipService membershipService, IPushUserEndpointsRepository pushUserEndpointsRepository)
        {
            if ((context == null) && (HttpContext.Current == null))
            {
                throw new ArgumentNullException("context", "Context cannot be null if not running on a Web context.");
            }

            if (pushUserEndpointsRepository == null)
            {
                throw new ArgumentNullException("pushUserEndpointsRepository", "PushUserEndpoints repository cannot be null.");
            }

            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "Membership service cannot be null.");
            }

            this.webOperationContext = webOperationContext;
            this.context = context;
            this.pushUserEndpointsRepository = pushUserEndpointsRepository;
            this.formsAuth = formsAuth;
            this.membershipService = membershipService;
        }
コード例 #7
0
ファイル: AuthController.cs プロジェクト: PombeirP/silkmod
 public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
                       IUserServices userServices)
 {
     this.relyingParty = relyingParty;
     this.formsAuthentication = formsAuthentication;
     this.userServices = userServices;
 }
コード例 #8
0
        public UserAdministrationController(
            IMembershipSettings membershipSettings,
            IUserService userService,
            IPasswordService passwordService,
            IRolesService rolesService,
            ISmtpClient smtpClient, IMembershipService service, IFormsAuthentication formsAuth,
            IMEmployeeRepository mEmployeeRepository,
            IMMenuRepository mMenuRepository,
            ITPrivilegeRepository tPrivilegeRepository)
        {
            _membershipSettings = membershipSettings;
            _userService        = userService;
            _passwordService    = passwordService;
            _rolesService       = rolesService;
            _smtpClient         = smtpClient;
            FormsAuth           = formsAuth ?? new FormsAuthenticationService();
            MembershipService   = service ?? new AccountMembershipService();


            Check.Require(mEmployeeRepository != null, "mEmployeeRepository may not be null");
            Check.Require(mMenuRepository != null, "mMenuRepository may not be null");
            Check.Require(tPrivilegeRepository != null, "tPrivilegeRepository may not be null");

            this._mEmployeeRepository  = mEmployeeRepository;
            this._mMenuRepository      = mMenuRepository;
            this._tPrivilegeRepository = tPrivilegeRepository;
        }
コード例 #9
0
        public async void AuthenticatorLoginShouldLoginWhenServiceReturnsUser()
        {
            User user = new User();

            user.Id   = 1;
            user.Name = "a";

            LoginAttempt attempt = new LoginAttempt(user);

            LoginModel model = new LoginModel();

            model.Login    = "******";
            model.Password = "******";

            ILoginService        service = MockRepository.GenerateStub <ILoginService>();
            ISessionHelper       session = MockRepository.GenerateStub <ISessionHelper>();
            IFormsAuthentication forms   = MockRepository.GenerateStub <IFormsAuthentication>();

            service.Stub(s => s.Login(model.Login, model.Password)).Return(Task <LoginAttempt> .FromResult(attempt));

            Authenticator authenticator = new Authenticator(service, session, forms);
            bool          result        = await authenticator.Login(model);

            Assert.IsTrue(result);
            service.AssertWasCalled(s => s.Login(model.Login, model.Password));
            Assert.AreEqual(session.User.Id, user.Id);
            forms.AssertWasCalled(f => f.SetAuthCookie(model.Login, true));
        }
コード例 #10
0
        public async void AuthenticatorLoginShouldNotLoginWhenServiceReturnsNull()
        {
            User user = null;

            LoginAttempt attempt = new LoginAttempt(user);

            LoginModel model = new LoginModel();

            model.Login    = "******";
            model.Password = "******";

            ILoginService        service = MockRepository.GenerateStub <ILoginService>();
            ISessionHelper       session = MockRepository.GenerateStub <ISessionHelper>();
            IFormsAuthentication forms   = MockRepository.GenerateStub <IFormsAuthentication>();

            service.Stub(s => s.Login(model.Login, model.Password)).Return(Task <LoginAttempt> .FromResult(attempt));

            Authenticator authenticator = new Authenticator(service, session, forms);
            bool          result        = await authenticator.Login(model);

            Assert.IsFalse(result);
            service.AssertWasCalled(s => s.Login(model.Login, model.Password));
            session.AssertWasNotCalled(s => s.User.Id);
            forms.AssertWasNotCalled(f => f.SetAuthCookie(Arg <string> .Is.Anything, Arg <bool> .Is.Anything));
        }
コード例 #11
0
 public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
     IMembershipService membershipService)
 {
     _customerService = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService = membershipService;
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrdersController"/> class. 
 /// Order controller constructor.
 /// </summary>
 /// <param name="orderService">
 /// The order service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The form authentication.
 /// </param>
 public OrdersController(
     IOrderService orderService, 
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.orderService = orderService;
 }
コード例 #13
0
 public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
                       IUserServices userServices)
 {
     this.relyingParty        = relyingParty;
     this.formsAuthentication = formsAuthentication;
     this.userServices        = userServices;
 }
コード例 #14
0
        public OAuthAuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
            : base(userService, formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();

            this.userService = userService;
        }
コード例 #15
0
 public OrderController(ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication, ICookieStorageService cookieStorageService)
     : base(cookieStorageService)
 {
     _customerService = customerService;
     _orderService = orderService;
     _formsAuthentication = formsAuthentication;
 }
コード例 #16
0
        private static TestableAuthController GetTestableAuthController(
            IOpenIdRelyingParty relyingParty,
            IFormsAuthentication formsAuth,
            CreateUser createUser,
            GetUserByClaimId getUser,
            string providerUrl = @"http:\\testprovider.com")
        {
            HttpContextBase contextMock    = MvcMockHelpers.FakeHttpContext(providerUrl);
            var             authController = new TestableAuthController(relyingParty, formsAuth, createUser, getUser);

            authController.ControllerContext = new ControllerContext(contextMock, new RouteData(), authController);
            authController.InvokeInitialize(authController.ControllerContext.RequestContext);

            // default routes
            var routes = new RouteCollection();

            routes.MapRoute(
                "Default",                    // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = "" } // Parameter defaults
                );
            authController.Url = new UrlHelper(authController.ControllerContext.RequestContext,
                                               routes);

            return(authController);
        }
コード例 #17
0
 public PublicController(
     IMiddleManagement MiddleManagement,
     IUserSession UserSession,
     IFormsAuthentication FormAuthentication)
     : base(MiddleManagement, UserSession, FormAuthentication)
 {
 }
コード例 #18
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;
 }
コード例 #19
0
        public SamplePushUserRegistrationService(HttpContextBase context, WebOperationContext webOperationContext, IFormsAuthentication formsAuth, IMembershipService membershipService, IPushUserEndpointsRepository pushUserEndpointsRepository, CloudQueueClient cloudQueueClient)
        {
            if ((context == null) && (HttpContext.Current == null))
            {
                throw new ArgumentNullException("context", "Context cannot be null if not running on a Web context.");
            }

            if (pushUserEndpointsRepository == null)
            {
                throw new ArgumentNullException("pushUserEndpointsRepository", "PushUserEndpoints repository cannot be null.");
            }

            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "Membership service cannot be null.");
            }

            if ((cloudQueueClient == null) && (GetStorageAccountFromConfigurationSetting() == null))
            {
                throw new ArgumentNullException("cloudQueueClient", "Cloud Queue Client cannot be null if no configuration is loaded.");
            }

            this.cloudQueueClient            = cloudQueueClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudQueueClient();
            this.webOperationContext         = webOperationContext;
            this.context                     = context;
            this.pushUserEndpointsRepository = pushUserEndpointsRepository;
            this.formsAuth                   = formsAuth;
            this.membershipService           = membershipService;
        }
コード例 #20
0
 public AccountController(IKcsarContext db, AccountsService accountsSvc, IFormsAuthentication formsAuth, ILog log, MembershipProvider membership)
     : base(db, log)
 {
     this.membership      = membership;
     this.accountsService = accountsSvc;
     this.formsAuth       = formsAuth;
 }
コード例 #21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PackagesController"/> class.
 /// </summary>
 /// <param name="packagesService">
 /// The packages service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 public PackagesController(
     IPackagesService packagesService,
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.packagesService = packagesService;
 }
コード例 #22
0
ファイル: AccountController.cs プロジェクト: wortexx/notes
 public AccountController(IFormsAuthentication formsAuthentication, 
     IUserRepository users, ICommandSender cmds)
 {
     _formsAuthentication = formsAuthentication;
     _users = users;
     _cmds = cmds;
 }
コード例 #23
0
ファイル: AccountController.cs プロジェクト: luowei98/YiHe
 public AccountController(ICommandBus commandBus, IUserRepository userRepository,
                          IFormsAuthentication formAuthentication)
 {
     this.commandBus = commandBus;
     this.userRepository = userRepository;
     this.formAuthentication = formAuthentication;
 }
コード例 #24
0
 public AccountController(IAccountTasks accountTasks, IUserMailer userMailer,
                      IFormsAuthentication formsAuthentication)
 {
     _accountTasks = accountTasks;
       _userMailer = userMailer;
       _formsAuthentication = formsAuthentication;
 }
コード例 #25
0
 public AccountController(IFormsAuthentication authentication,
                          IRepository <Account> accountRepository, IRepository <LoginLog> loginLogRepository)
 {
     _authentication     = authentication;
     _accountRepository  = accountRepository;
     _loginLogRepository = loginLogRepository;
 }
コード例 #26
0
ファイル: SessionController.cs プロジェクト: sesquiv/siacvu
 public SessionController(IFormsAuthentication formsAuthentication, 
     IAuthenticationService authenticationService, IProductoService productoService)
 {
     this.formsAuthentication = formsAuthentication;
     this.authenticationService = authenticationService;
     this.productoService = productoService;
 }
コード例 #27
0
 // This constructor is not used by the MVC framework but is instead provided for ease
 // of unit testing this type. See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth, IMembershipService service,
     ILogger logger)
 {
     FormsAuth = formsAuth ?? new FormsAuthenticationService();
     MembershipService = service ?? new AccountMembershipService();
     Logger = logger ?? new Logger.Logger();
 }
コード例 #28
0
 public AccountController(IKcsarContext db, AccountsService accountsSvc, IFormsAuthentication formsAuth, ILog log, MembershipProvider membership)
     : base(db, log)
 {
     this.membership = membership;
       this.accountsService = accountsSvc;
       this.formsAuth = formsAuth;
 }
コード例 #29
0
 public CustomerController(ICookieStorageService cookieStorageService,
                           ICustomerService customerService,
                           IFormsAuthentication formsAuthentication) : base(cookieStorageService)
 {
     _customerService     = customerService;
     _formsAuthentication = formsAuthentication;
 }
コード例 #30
0
ファイル: SessionsController.cs プロジェクト: Zero41/Moose
        public SessionsController(IFormsAuthentication formsAuthentication, IDocumentSession session)
        {
            if (formsAuthentication == null) throw new ArgumentNullException("formsAuthentication");
            if (session == null) throw new ArgumentNullException("session");

            this.formsAuthentication = formsAuthentication;
            this.session = session;
        }
コード例 #31
0
        public void SetUp()
        {
            AutoMapperConfiguration.Configure();
            Mapper.AssertConfigurationIsValid();

            this.MembershipService = new FakeMembershipService();
            this.FormsAuthentication = new FakeFormsAuthentication();
        }
コード例 #32
0
 // This constructor is not used by the MVC framework but
 // is instead provided for ease of unit testing this type.
 // See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth, 
     IMembershipService service)
 {
     this.FormsAuth =
         formsAuth ?? new FormsAuthenticationService();
     this.MembershipService = 
         service ?? new AccountMembershipService();
 }
コード例 #33
0
 // This constructor is not used by the MVC framework but
 // is instead provided for ease of unit testing this type.
 // See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth,
                          IMembershipService service)
 {
     this.FormsAuth =
         formsAuth ?? new FormsAuthenticationService();
     this.MembershipService =
         service ?? new AccountMembershipService();
 }
コード例 #34
0
        protected AuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();
            Ensure.That(() => formsAuthentication).IsNotNull();

            this.userService = userService;
            this.formsAuthentication = formsAuthentication;
        }
コード例 #35
0
        public UserController(IFormsAuthentication formsAuthentication, IAuthenticationService authenticationService)
        {
            Ensure.That(() => formsAuthentication).IsNotNull();
            Ensure.That(() => authenticationService).IsNotNull();

            this.formsAuthentication = formsAuthentication;
            this.authenticationService = authenticationService;
        }
コード例 #36
0
ファイル: AccountController.cs プロジェクト: felipecsl/dover
        public AccountController(
			IModuleRepository moduleRepo,
			IFormsAuthentication formsAuth,
			IMembershipService service)
            : base(moduleRepo, service)
        {
            FormsAuth = formsAuth;
        }
コード例 #37
0
        public void SetUp()
        {
            AutoMapperConfiguration.Configure();

            this.orderService = new FakeOrderService();
            this.formsAuthentication = new FakeFormsAuthentication();
            this.formsAuthentication.SetAuthenticationToken("*****@*****.**", true);
        }
コード例 #38
0
 public AccountRegisterController(ILocalAuthenticationService authentication_service,
                                  ICommandBus command_bus,
                                  IFormsAuthentication forms_authentication)
 {
     _authentication_service = authentication_service;
     _command_bus            = command_bus;
     _forms_authentication   = forms_authentication;
 }
コード例 #39
0
 public FeaturesController(ILocalAuthenticationService authenticationService,
                           IUserService userService,
                           IExternalAuthenticationService externalAuthenticationService,
                           IFormsAuthentication formsAuthentication,
                           IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
 }
コード例 #40
0
 public AccountRegisterController(ILocalAuthenticationService authentication_service,
                                  ICommandBus command_bus,
                                  IFormsAuthentication forms_authentication)
 {
     _authentication_service = authentication_service;
     _command_bus = command_bus;
     _forms_authentication = forms_authentication;
 }
コード例 #41
0
 public AccountController(
     IModuleRepository moduleRepo,
     IFormsAuthentication formsAuth,
     IMembershipService service)
     : base(moduleRepo, service)
 {
     FormsAuth = formsAuth;
 }
コード例 #42
0
 public AccountController(IUserModelService userService,
                          IFormsAuthentication formsAuthService,
                          ILoginLogService logService)
 {
     this._userService      = userService;
     this._logService       = logService;
     this._formsAuthService = formsAuthService;
 }
コード例 #43
0
        public AuthenticationController(IApplicationServices applicationServices, IFormsAuthentication formsAuthentication, IAuthenticator authenticator)
            : base(applicationServices)
        {
            Guard.IsNotNull(formsAuthentication, "formsAuthentication");
            Guard.IsNotNull(authenticator, "authenticator");

            this.formsAuthentication = formsAuthentication;
            this.authenticator = authenticator;
        }
コード例 #44
0
 public AuthSurfaceController(
     IAuthService authService,
     IFormsAuthentication formsAuthentication,
     IAirFlowHelper airFlowHelper)
 {
     _authService         = authService;
     _formsAuthentication = formsAuthentication;
     _airFlowHelper       = airFlowHelper;
 }
コード例 #45
0
 public AccountLogOnController(ILocalAuthenticationService authenticationService,
                               ICustomerService customerService,
                               IExternalAuthenticationService externalAuthenticationService,
                               IFormsAuthentication formsAuthentication,
                               IActionArguments actionArguements)
     : base(authenticationService, customerService, externalAuthenticationService,
            formsAuthentication, actionArguements)
 {
 }
コード例 #46
0
 public AccountRegisterController(ILocalAuthenticationService authenticationService,
                                  ICustomerService customerService,
                                  IExternalAuthenticationService externalAuthenticationService,
                                  IFormsAuthentication formsAuthentication,
                                  IActionArguments actionArguements)
     : base(authenticationService, customerService, externalAuthenticationService,
           formsAuthentication, actionArguements)
 {            
 }
コード例 #47
0
 public FederationAuthenticationModule(IFormsAuthentication formsAuthentication, IFormsAuthenticationTicketFactory formsAuthenticationTicketFactory, ILog log, IRedirectInformationFactory redirectInformationFactory, IWebFacade webFacade, IWindowsFederationIdentityFactory windowsFederationIdentityFactory)
 {
     this.FormsAuthentication = formsAuthentication ?? throw new ArgumentNullException(nameof(formsAuthentication));
     this.FormsAuthenticationTicketFactory = formsAuthenticationTicketFactory ?? throw new ArgumentNullException(nameof(formsAuthenticationTicketFactory));
     this.Log = log ?? throw new ArgumentNullException(nameof(log));
     this.RedirectInformationFactory = redirectInformationFactory ?? throw new ArgumentNullException(nameof(redirectInformationFactory));
     this.WebFacade = webFacade ?? throw new ArgumentNullException(nameof(webFacade));
     this.WindowsFederationIdentityFactory = windowsFederationIdentityFactory ?? throw new ArgumentNullException(nameof(windowsFederationIdentityFactory));
 }
コード例 #48
0
 public BannersController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBannerService bannerService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
 {
     _bannerService = bannerService;
 }
コード例 #49
0
ファイル: Authenticator.cs プロジェクト: fodmar/Budget
 public Authenticator(
     ILoginService loginService,
     ISessionHelper sessionHelper,
     IFormsAuthentication formsAuthentication)
 {
     this.loginService        = loginService;
     this.sessionHelper       = sessionHelper;
     this.formsAuthentication = formsAuthentication;
 }
コード例 #50
0
 public CheckoutController(ICookieStorageService cookieStorageService, ICustomerService customerService,
                           IFormsAuthentication formsAuthentication, IMembershipService membershipService, IOrderService orderService)
 {
     _cookieStorageService = cookieStorageService;
     _customerService      = customerService;
     _formsAuthentication  = formsAuthentication;
     _membershipService    = membershipService;
     _orderService         = orderService;
 }
コード例 #51
0
        public PlainAuthenticationPortal(IUserService userService, IMembershipProvider membershipProvider, IFormsAuthentication formsAuthentication)
            : base(userService, formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();
            Ensure.That(() => membershipProvider).IsNotNull();

            this.userService = userService;
            this.membershipProvider = membershipProvider;
        }
コード例 #52
0
ファイル: UserService.cs プロジェクト: avannini/uisp-mobile
        public UserService(IRepository<Utente> repo, IFormsAuthentication formsAuth, IAuditing auditing, IMailService mailService )
        {
            _userRepo = repo;
            _formsAuth = formsAuth;
            _mailService = mailService;

            if ((_auditing = auditing) == null)
                throw new ArgumentNullException("auditing");
        }
コード例 #53
0
        public void SetUp()
        {
            Common.SetUpUmbracoContext();

            _authService         = Substitute.For <IAuthService>();
            _formsAuthentication = Substitute.For <IFormsAuthentication>();
            _airFlowHelper       = Substitute.For <IAirFlowHelper>();

            _authController = new AuthSurfaceController(_authService, _formsAuthentication, _airFlowHelper);
        }
コード例 #54
0
 public PortfolioController(ILocalAuthenticationService authenticationService,
                            IUserService userService,
                            IProjectService projectService,
                            IExternalAuthenticationService externalAuthenticationService,
                            IFormsAuthentication formsAuthentication,
                            IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, formsAuthentication, actionArguments)
 {
     _projectService = projectService;
 }
コード例 #55
0
 public SubscriberController(ILocalAuthenticationService authenticationService,
                             IUserService userService,
                             ISubscriberService subscriberService,
                             IExternalAuthenticationService externalAuthenticationService,
                             IFormsAuthentication formsAuthentication,
                             IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _subscriberService = subscriberService;
 }
コード例 #56
0
 public ProfileController(
     IUserServices userServices,
     ICountryServices countryServices,
     IFormsAuthentication formsAuthentication)
     : base(userServices, null)
 {
     this.userServices        = userServices;
     this.countryServices     = countryServices;
     this.formsAuthentication = formsAuthentication;
 }
コード例 #57
0
 public ContactController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBlogService blogService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _blogService = blogService;
 }
コード例 #58
0
 public AuthController(
     IOpenIdRelyingParty relyingParty,
     IFormsAuthentication formsAuthentication,
     CreateUser createUser,
     GetUserByClaimId getUserByClaimId)
 {
     _relyingParty        = relyingParty;
     _formsAuthentication = formsAuthentication;
     _createUser          = createUser;
     _getUserByClaimId    = getUserByClaimId;
 }
コード例 #59
0
 public ProjectsController(ILocalAuthenticationService authenticationService,
                           IUserService userService,
                           IBlogService blogService,
                           IExternalAuthenticationService externalAuthenticationService,
                           IFormsAuthentication formsAuthentication,
                           IActionArguments actionArguments, IProjectService projectService)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _blogService    = blogService;
     _projectService = projectService;
 }
コード例 #60
0
 public ProfileController(
     UpdateUser updateUser,
     GetUserByClaimId getUser,
     GetCountries getCountries,
     IFormsAuthentication formsAuthentication)
     : base(getUser, null)
 {
     _updateUser          = updateUser;
     _getCountries        = getCountries;
     _formsAuthentication = formsAuthentication;
 }