Пример #1
0
        public PasswordHistoryAttribute(String userId)
        {
            OtherPropertyName = userId;

            var passwordHistoryRepository = new PasswordHistoryRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString);

            PasswordHistoryService = new PasswordHistoryService(passwordHistoryRepository);
        }
Пример #2
0
        private int expiredIDNoOfDays = -90;                                                                                                                                                                                                                           // Porvided Default Value to make sure existing implementation will not break if Configuration does not exist;

        public SecurityService(ISecurityRepository repository, IDatastoreValidationRepository validationRepository, ICacheService cacheInstance, ILogService logService, IPortalSettingsService portalSettingsService, IPasswordHistoryService passwordHistoryService) //IMessageService messageService,
        {
            repositoryInstance           = repository;
            validationRepositoryInstance = validationRepository;
            cacheService = cacheInstance;
            logger       = logService;
            portalSettingsServiceInstance  = portalSettingsService;
            passwordHistoryServiceInstance = passwordHistoryService;
        }
Пример #3
0
        public PasswordHistoryAttribute(string userId)
        {
            OtherPropertyName = userId;

            var passwordHistoryRepository = new PasswordHistoryRepository(ConfigurationManager.ConnectionStrings["Unity"].ConnectionString);
            var userManagerProvider       = new UserManagerProvider(ConfigurationManager.ConnectionStrings["Unity"].ConnectionString);

            PasswordHistoryService = new PasswordHistoryService(passwordHistoryRepository, userManagerProvider);
        }
Пример #4
0
 public LoginController(IAccountApplianceService accountApplianceceService, IAccountService accountService, IAccountTokenService accountTokenService, IEventService eventService, IHelperService helperService, IPasswordHistoryService passwordHistoryService, IOptions <AppSetting> appSettings) : base(appSettings.Value)
 {
     this._accountService            = accountService;
     this._accountTokenService       = accountTokenService;
     this._eventService              = eventService;
     this._helperService             = helperService;
     this._passwordHistoryService    = passwordHistoryService;
     this._accountApplianceceService = accountApplianceceService;
 }
Пример #5
0
 public PasswordController(
     IUserService userService,
     IPasswordHistoryService passwordHistoryService,
     ISecurityQuestionService securityQuestionService,
     ISecurityAnswerService securityAnswerService,
     ILogger logger)
     : base(logger)
 {
     this._userService             = userService;
     this._passwordHistoryService  = passwordHistoryService;
     this._securityQuestionService = securityQuestionService;
     this._securityAnswerService   = securityAnswerService;
 }
Пример #6
0
 public AccountController(UserManager <User> userManager,
                          RoleManager <Role> roleManager,
                          ILogger logger,
                          IMapper mapper,
                          IConfiguration configuration,
                          TokenService tokenService,
                          DefaultDataProtectorTokenProvider <User> dataProtectorTokenProvider,
                          IUserService userService, IEdcPublishService edcPublishService,
                          IPasswordHistoryService passwordHistoryService) : base(logger, mapper)
 {
     _userManager   = userManager;
     _configuration = configuration;
     _tokenService  = tokenService;
     _dataProtectorTokenProvider = dataProtectorTokenProvider;
     _userService            = userService;
     _edcPublishService      = edcPublishService;
     _passwordHistoryService = passwordHistoryService;
 }
 public UserExtensionService(
     IContentManager contentManager,
     IMembershipService membershipService,
     IClock clock,
     IMessageService messageService,
     ShellSettings shellSettings,
     IEncryptionService encryptionService,
     IShapeFactory shapeFactory,
     IShapeDisplay shapeDisplay,
     ISiteService siteService,
     IOrchardServices orchardServices,
     IUserProviderServices userProviderService,
     IPasswordHistoryService passwordHistoryService
     )
     : base(contentManager, membershipService, clock, messageService, shellSettings, encryptionService, shapeFactory, shapeDisplay, siteService, passwordHistoryService)
 {
     _contentManager      = contentManager;
     _orchardservices     = orchardServices;
     _userProviderService = userProviderService;
 }
Пример #8
0
 public UserService(ILogger logger, IMapper mapper,
                    IServiceProvider serviceProvider,
                    IUserDomainService userDomainService,
                    IAuthorizationStatusValidator authorizationStatusValidator,
                    ITokenProviderService tokenProviderService,
                    AuthApiUrlConfiguration authApiUrlConfiguration,
                    PasswordConfiguration passwordConfiguration,
                    IPasswordHistoryService passwordHistoryService,
                    IEmailService emailService,
                    IEmailTemplateProvider emailTemplateProvider,
                    EmailTemplatesConfiguration emailTemplatesConfiguration)
     : base(logger, mapper, serviceProvider)
 {
     _userDomainService            = userDomainService;
     _authorizationStatusValidator = authorizationStatusValidator;
     _tokenProviderService         = tokenProviderService;
     _authApiUrlConfiguration      = authApiUrlConfiguration;
     _passwordConfiguration        = passwordConfiguration;
     _passwordHistoryService       = passwordHistoryService;
     _emailService                = emailService;
     _emailTemplateProvider       = emailTemplateProvider;
     _emailTemplatesConfiguration = emailTemplatesConfiguration;
 }
Пример #9
0
 public AccountController(IDashboardService dashboardService, IPipelineService pipelineService, IPasswordHistoryService passwordHistoryService) : base(pipelineService)
 {
     this.dashboardService       = dashboardService;
     this.pipelineService        = pipelineService;
     this.passwordHistoryService = passwordHistoryService;
 }
Пример #10
0
 public void SetUp()
 {
     _passwordHistoryRepository = new Mock <IPasswordHistoryRepository>();
     this._userManagerProvider  = new Mock <IUserManagerProvider>();
     _passwordHistoryService    = new PasswordHistoryService(_passwordHistoryRepository.Object, _userManagerProvider.Object);
 }
Пример #11
0
 public ProfileController(IPasswordHistoryService passwordHistoryService, IAccountService accountService, IHelperService helperService, IOptions <AppSetting> appSettings) : base(appSettings.Value)
 {
     this._passwordHistoryService = passwordHistoryService;
     this._accountService         = accountService;
     this._helperService          = helperService;
 }