예제 #1
0
 public AppUserStore(IdentityErrorDescriber describer) : base(describer)
 {
 }
예제 #2
0
 public UserStore(TContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
 public UserManager(IUserStore <User> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <User> passwordHasher, IEnumerable <IUserValidator <User> > userValidators, IEnumerable <IPasswordValidator <User> > passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger <UserManager <User> > logger)
     : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
 }
예제 #4
0
 public UserStore(IDal <TUser> dal, IDal <TRole> rolesDal, IdentityErrorDescriber describer) :
     base(describer)
 {
     _dal      = dal;
     _rolesDal = rolesDal;
 }
 public IdentityUserValidator(IdentityErrorDescriber errors = null)
 {
     Describer = errors ?? new IdentityErrorDescriber();
 }
예제 #6
0
 /// <summary>
 /// Constructs a new instance of <see cref="UserOnlyStore{TUser}"/>.
 /// </summary>
 /// <param name="context">The <see cref="DbContext"/>.</param>
 /// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param>
 public UserOnlyStore(IIdentityRepository <AppUser <string>, AppRole <string>, string> context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
예제 #7
0
 public UserAccessor(IHttpContextAccessor httpContextAccessor, IdentityErrorDescriber errors)
 {
     this.errors = errors;
     this.httpContextAccessor = httpContextAccessor;
 }
예제 #8
0
 public RoleStore(IMongoCollection <TRole> roleCollection, IdentityErrorDescriber describer = null)
 {
     this.roleCollection = roleCollection;
 }
 /// <summary>
 /// Constructs a new instance of <see cref="Neo4jUserStore{TUser,TRole}"/>.
 /// </summary>
 /// <param name="session">The <see cref="ISession"/>.</param>
 /// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param>
 public Neo4jUserStore(ISession session, IdentityErrorDescriber describer = null) : base(session, describer)
 {
 }
예제 #10
0
 public SunRoleManager(IRoleStore <Role> store, IEnumerable <IRoleValidator <Role> > roleValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger <RoleManager <Role> > logger) : base(store, roleValidators, keyNormalizer, errors, logger)
 {
     KeyNormalizer = Normalizer.Singleton;
 }
예제 #11
0
 public BaseIdentityRoleStore(BaseIdentityDbContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
     AutoSaveChanges = false;
 }
예제 #12
0
 /// <summary>
 /// 角色唯一键已经存在。
 /// </summary>
 /// <param name="describer">错误描述实例。</param>
 /// <param name="normalizedRoleName">角色唯一键。</param>
 /// <returns>返回错误实例。</returns>
 public static IdentityError DuplicateNormalizedRoleName(this IdentityErrorDescriber describer, string normalizedRoleName)
 {
     return(describer.SecurityError(ErrorDescriptor.DuplicateNormalizedRoleName, normalizedRoleName));
 }
예제 #13
0
 /// <summary>
 /// 用户不存在。
 /// </summary>
 /// <param name="describer">错误描述实例。</param>
 /// <returns>返回错误实例。</returns>
 public static IdentityError UserNotFound(this IdentityErrorDescriber describer)
 {
     return(describer.SecurityError(ErrorDescriptor.UserNotFound));
 }
예제 #14
0
 /// <summary>
 /// 用户被锁定。
 /// </summary>
 /// <param name="describer">错误描述实例。</param>
 /// <returns>返回错误实例。</returns>
 public static IdentityError UserLockedOut(this IdentityErrorDescriber describer)
 {
     return(describer.SecurityError(ErrorDescriptor.UserLockedOut));
 }
 public CustomIdentityUserStore(IdentityErrorDescriber describer) : base(describer)
 {
 }
예제 #16
0
 public Usercustom(EcommerContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
예제 #17
0
 public PandaUserStore(Panda2DbContext context, IdentityErrorDescriber describer = null)
     : base(context, describer)
 {
 }
예제 #18
0
 public UserService(DATA.TicketingSystemDbContext db, IUserStore <DATA_MODELS.User> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <DATA_MODELS.User> passwordHasher, IEnumerable <IUserValidator <DATA_MODELS.User> > userValidators, IEnumerable <IPasswordValidator <DATA_MODELS.User> > passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger <UserManager <DATA_MODELS.User> > logger) : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }
예제 #19
0
 public ApplicationUserManager(ApplicationUserStore applicationUserStore, IOptions <IdentityOptions> options, IPasswordHasher <ApplicationUser> passwordHasher, IEnumerable <IUserValidator <ApplicationUser> > userValidators, IEnumerable <IPasswordValidator <ApplicationUser> > passwordValidators, ILookupNormalizer lookupNormalizer, IdentityErrorDescriber identityErrorDescriber, IServiceProvider services, ILogger <ApplicationUserManager> logger) : base(applicationUserStore, options, passwordHasher, userValidators, passwordValidators, lookupNormalizer, identityErrorDescriber, services, logger)
 {
 }
예제 #20
0
 public ModwanaRoleStore(ModwanaDbContext context, IdentityErrorDescriber errorDescriber) : base(context, errorDescriber)
 {
 }
예제 #21
0
 public KullaniciStore(MTIdentityDbContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
예제 #22
0
 public SecteUserStore(WebsiteContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
     _context = context;
 }
 public DefaultPhoneNumberValidator(IdentityErrorDescriber describer, IOptions <IdentityOptionsExtended> options)
 {
     _describer = describer;
     _options   = options;
 }
예제 #24
0
 public UserService(
     IUserRepository userRepository,
     ICipherRepository cipherRepository,
     IOrganizationUserRepository organizationUserRepository,
     IOrganizationRepository organizationRepository,
     IU2fRepository u2fRepository,
     IMailService mailService,
     IPushNotificationService pushService,
     IUserStore <User> store,
     IOptions <IdentityOptions> optionsAccessor,
     IPasswordHasher <User> passwordHasher,
     IEnumerable <IUserValidator <User> > userValidators,
     IEnumerable <IPasswordValidator <User> > passwordValidators,
     ILookupNormalizer keyNormalizer,
     IdentityErrorDescriber errors,
     IServiceProvider services,
     ILogger <UserManager <User> > logger,
     ILicensingService licenseService,
     IEventService eventService,
     IApplicationCacheService applicationCacheService,
     IDataProtectionProvider dataProtectionProvider,
     IPaymentService paymentService,
     IPolicyRepository policyRepository,
     IReferenceEventService referenceEventService,
     ICurrentContext currentContext,
     GlobalSettings globalSettings,
     IOrganizationService organizationService)
     : base(
         store,
         optionsAccessor,
         passwordHasher,
         userValidators,
         passwordValidators,
         keyNormalizer,
         errors,
         services,
         logger)
 {
     _userRepository             = userRepository;
     _cipherRepository           = cipherRepository;
     _organizationUserRepository = organizationUserRepository;
     _organizationRepository     = organizationRepository;
     _u2fRepository                    = u2fRepository;
     _mailService                      = mailService;
     _pushService                      = pushService;
     _identityOptions                  = optionsAccessor?.Value ?? new IdentityOptions();
     _identityErrorDescriber           = errors;
     _passwordHasher                   = passwordHasher;
     _passwordValidators               = passwordValidators;
     _licenseService                   = licenseService;
     _eventService                     = eventService;
     _applicationCacheService          = applicationCacheService;
     _paymentService                   = paymentService;
     _policyRepository                 = policyRepository;
     _organizationServiceDataProtector = dataProtectionProvider.CreateProtector(
         "OrganizationServiceDataProtector");
     _referenceEventService = referenceEventService;
     _currentContext        = currentContext;
     _globalSettings        = globalSettings;
     _organizationService   = organizationService;
 }
예제 #25
0
 public ExtendedUserStore(IdentityServerDbContext context, IdentityErrorDescriber describer = null)
     : base(context, describer)
 {
 }
예제 #26
0
 /// <summary>
 /// Constructs a new instance of <see cref="RoleStore{TRole}"/>.
 /// </summary>
 /// <param name="context">The <see cref="DbContext"/>.</param>
 /// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param>
 public RoleStore(DbContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
예제 #27
0
 public RoleManagerService(IRoleStore <Role> store, IEnumerable <IRoleValidator <Role> > roleValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger <RoleManager <Role> > logger) : base(store, roleValidators, keyNormalizer, errors, logger)
 {
 }
예제 #28
0
 public RoleStore(IdentityDbContext context, IdentityErrorDescriber errorDescriber, ILoggerFactory loggerFactory, IConfiguration configuration) : base(context, errorDescriber, loggerFactory, configuration)
 {
 }
 public ApplicationUserStore(ApplicationIdentityDbContext context, IdentityErrorDescriber describer = null) : base(context, describer)
 {
 }
예제 #30
0
 public CustomRoleManager(IRoleStore <CustomRole> store, IEnumerable <IRoleValidator <CustomRole> > roleValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger <RoleManager <CustomRole> > logger, IHttpContextAccessor contextAccessor) :
     base(store, roleValidators, keyNormalizer, errors, logger, contextAccessor)
 {
 }