public AuthorityDbInitializer(
     AuthorityDbContext context,
     IAccountManager accountManager,
     IRoleService roleService,
     ILogger <AuthorityDbInitializer> logger)
 {
     _accountManager = accountManager;
     _roleService    = roleService;
     _context        = context;
     _logger         = logger;
 }
        public WorkplaceCredentialsService(
            IOpenIddictApplicationManager oidcAppManager,
            AuthorityDbContext authorityDbContext,
            AutoMapperConfig autoMapperConfig,
            ITenantIdProvider tenantIdProvider
            )
        {
            _rngCsp = new RNGCryptoServiceProvider();

            _oidcAppManager     = oidcAppManager;
            _tenantIdProvider   = tenantIdProvider;
            _authorityDbContext = authorityDbContext;
            _mapper             = autoMapperConfig.CreateMapper();
        }
Exemplo n.º 3
0
 public RestrictedAccountManager(
     AuthorityDbContext context,
     MultitenantUserManager <ApplicationUser> userManager,
     IRestrictedRoleService roleService,
     IUserOrgStructureReferencesValidator userReferencesValidator,
     ITenantIdProvider tenantIdProvider,
     ITenantEntityAccessChecker accessChecker,
     IAccessScopeFilter accessScopeFilter,
     IEmailService emailService,
     AutoMapperConfig autoMapperConfig)
     : base(context, userManager, roleService, userReferencesValidator, emailService, autoMapperConfig)
 {
     _accessScopeFilter = accessScopeFilter;
     _accessChecker     = accessChecker;
     _tenantIdProvider  = tenantIdProvider;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="context"></param>
 /// <param name="userManager"></param>
 /// <param name="roleService"></param>
 /// <param name="userReferencesValidator">used to validate Users being created or updated</param>
 /// <param name="mailService"></param>
 /// <param name="autoMapperConfig"></param>
 public UnrestrictedAccountManager(
     AuthorityDbContext context,
     MultitenantUserManager <ApplicationUser> userManager,
     IRoleService roleService,
     IUserOrgStructureReferencesValidator userReferencesValidator,
     IEmailService mailService,
     AutoMapperConfig autoMapperConfig
     )
 {
     _context     = context;
     _userManager = userManager;
     _roleService = roleService;
     _mailService = mailService;
     _mapper      = autoMapperConfig.CreateMapper();
     // these are needed for validation of user model
     _userReferencesValidator = userReferencesValidator;
 }
 public RoleAPIAuthorityRepositoryImpl(AuthorityDbContext dbContext) : base(dbContext)
 {
 }
Exemplo n.º 6
0
 public UserOwnedActionAuthorityRepositoryImpl(AuthorityDbContext dbContext) : base(dbContext)
 {
 }
Exemplo n.º 7
0
 public APIAuthorityRepositoryImpl(AuthorityDbContext dbContext, ICacheManager cacheManager) : base(dbContext)
 {
     _cacheManager = cacheManager;
 }
 public RoleWebMenuAuthorityRepositoryImpl(AuthorityDbContext dbContext) : base(dbContext)
 {
 }
Exemplo n.º 9
0
 public UserRoleRepositoryImpl(AuthorityDbContext dbContext) : base(dbContext)
 {
 }
 public UserOwnedWebMenuAuthorityRepositoryImpl(AuthorityDbContext dbContext) : base(dbContext)
 {
 }