public WebSecurity(
     IUnitOfWorkAsync unitOfWorkAsync
     , ILog4NetLoggingService loggingService
     , IMapper mapper
     , ApplicationSignInManager signInManager
     , ApplicationUserManager userManager
     , ICachedUserAuthorizationGrantsProvider cachedUserAuthorizationGrantsProvider
     )
 {
     _userManager = userManager;
     _cachedUserAuthorizationGrantsProvider = cachedUserAuthorizationGrantsProvider;
     _signInManager   = signInManager;
     _loggingService  = loggingService ?? throw new ArgumentNullException(nameof(loggingService));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _unitOfWorkAsync = unitOfWorkAsync ?? throw new ArgumentNullException(nameof(unitOfWorkAsync));
     // _userManager = HttpContext.Current.GetOwinContext().GetUserManager<ApplicationUserManager>();
 }
Пример #2
0
 public RowAuthPoliciesContainer(ICachedUserAuthorizationGrantsProvider userAuthorizationGrantsProvider)
 {
     _userAuthorizationGrantsProvider = userAuthorizationGrantsProvider;
     _userAuthorizationGrantsProvider.OrganizationalUnits          = new[] { 1, 2, 3, 4, 5, 6, 7 };
     _userAuthorizationGrantsProvider.ExplicitlyAssignedToProjects = new[] { 1, 2, 3, 4, 5, 6, 7 };
 }
Пример #3
0
 public DbLogService(IUnitOfWorkAsync uow, CachedUserAuthorizationGrantsProvider cachedUserAuthorizationGrantsProvider)
 {
     _uow = uow;
     _cachedUserAuthorizationGrantsProvider = cachedUserAuthorizationGrantsProvider;
 }