public IdentityDbInitializer( IApplicationUserManager applicationUserManager, IServiceScopeFactory scopeFactory, IApplicationRoleManager roleManager, ILogger <IdentityDbInitializer> logger, IMvcActionsDiscoveryService mvcActionsDiscoveryService, IHostingEnvironment env, IUnitOfWork uow ) { _applicationUserManager = applicationUserManager; _applicationUserManager.CheckArgumentIsNull(nameof(_applicationUserManager)); _scopeFactory = scopeFactory; _scopeFactory.CheckArgumentIsNull(nameof(_scopeFactory)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _logger = logger; _logger.CheckArgumentIsNull(nameof(_logger)); _mvcActionsDiscoveryService = mvcActionsDiscoveryService; _env = env; _uow = uow; }
public IdentityDbInitializer( IApplicationUserManager applicationUserManager, IServiceScopeFactory scopeFactory, IApplicationRoleManager roleManager, IOptionsSnapshot <SiteSettings> adminUserSeedOptions, ILogger <IdentityDbInitializer> logger, IApiResourceRepository apiResourceRepository, IIdentityResourceDataSeeder identityResourceDataSeeder, IClientRepository clientRepository, IApiScopeRepository apiScopeRepository, IConfiguration configuration ) { _applicationUserManager = applicationUserManager; _applicationUserManager.CheckArgumentIsNull(nameof(_applicationUserManager)); _scopeFactory = scopeFactory; _scopeFactory.CheckArgumentIsNull(nameof(_scopeFactory)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _adminUserSeedOptions = adminUserSeedOptions; _adminUserSeedOptions.CheckArgumentIsNull(nameof(_adminUserSeedOptions)); _logger = logger; _apiResourceRepository = apiResourceRepository; _identityResourceDataSeeder = identityResourceDataSeeder; _clientRepository = clientRepository; _apiScopeRepository = apiScopeRepository; _configuration = configuration; _logger.CheckArgumentIsNull(nameof(_logger)); }
public RoleManagerController(IApplicationRoleManager roleManager, IMapper mapper) { _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _mapper = mapper; _mapper.CheckArgumentIsNull(nameof(_mapper)); }
public DynmicRoleController(IMvcControllerDiscovery mvcControllerDiscovery, IApplicationRoleManager roleManager) { _mvcControllerDiscovery = mvcControllerDiscovery; _mvcControllerDiscovery.CheckArgumentIsNull(nameof(_mvcControllerDiscovery)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); }
public DynamicAuthorizationFilter(IApplicationRoleManager roleManager, IApplicationUserManager userManager) { _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); }
public UserCardController( IApplicationUserManager userManager, IApplicationRoleManager roleManager) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); }
public DynamicRoleClaimsManagerController (IMvcActionsDiscoveryService mvcActionsDiscoveryService, IApplicationRoleManager roleManager) { _mvcActionsDiscoveryService = mvcActionsDiscoveryService; _mvcActionsDiscoveryService.CheckArgumentIsNull(nameof(_mvcActionsDiscoveryService)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); }
public UserManagerController(IApplicationUserManager userManager, IMapper mapper, IApplicationRoleManager roleManager, IWebHostEnvironment env) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _mapper = mapper; _mapper.CheckArgumentIsNull(nameof(_mapper)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _env = env; _env.CheckArgumentIsNull(nameof(_env)); }
public UserController( IApplicationUserManager userManager, IHttpContextAccessor contextAccessor, IApplicationRoleManager roleManager, UserService userService) { _contextAccessor = contextAccessor; _userService = userService; _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); }
// TODO: validate username and password??? public UserController(IUnitOfWork uow, IApplicationUserManager userManager, IApplicationRoleManager roleManager) { _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _userRoles = _uow.Set <UserRole>(); _userRoles.CheckArgumentIsNull(nameof(_userRoles)); }
//private readonly IOptions<IdentityOptions> _optionsAccessor; //private readonly IApplicationRoleManager _roleManager; //private readonly IApplicationUserManager _userManager; public ApplicationClaimsPrincipalFactory( IApplicationUserManager userManager, IApplicationRoleManager roleManager, IOptions <IdentityOptions> optionsAccessor) : base((UserManager <User>)userManager, (RoleManager <Role>)roleManager, optionsAccessor) { userManager.CheckArgumentIsNull(nameof(userManager)); // _roleManager = roleManager; roleManager.CheckArgumentIsNull(nameof(roleManager)); //_optionsAccessor = optionsAccessor; optionsAccessor.CheckArgumentIsNull(nameof(optionsAccessor)); }
public ApplicationClaimsTransformation( IApplicationUserManager userManager, IApplicationRoleManager roleManager, ILogger <ApplicationClaimsTransformation> logger) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(roleManager)); _logger = logger; _logger.CheckArgumentIsNull(nameof(logger)); }
public TokenStoreService( IUnitOfWork uow, IApplicationRoleManager rolesService ) { _uow = uow; _uow.CheckArgumentIsNull(nameof(_uow)); _rolesService = rolesService; _rolesService.CheckArgumentIsNull(nameof(rolesService)); _tokens = _uow.Set <CustomUserToken>(); }
public UsersManagerController( IApplicationUserManager userManager, IApplicationRoleManager roleManager, IApplicationSignInManager signInManager, UserService UserService ) { _signInManager = signInManager; _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _userService = UserService; }
public TokenFactoryService( ISecurityService securityService, IApplicationRoleManager rolesService, IOptionsSnapshot <BearerTokensOptions> configuration, ILogger <TokenFactoryService> logger) { _securityService = securityService; _securityService.CheckArgumentIsNull(nameof(_securityService)); _rolesService = rolesService; _rolesService.CheckArgumentIsNull(nameof(rolesService)); _configuration = configuration; _configuration.CheckArgumentIsNull(nameof(configuration)); _logger = logger; _logger.CheckArgumentIsNull(nameof(logger)); }
public UserProfileController( IApplicationUserManager userManager, IApplicationRoleManager roleManager, IApplicationSignInManager signInManager, IProtectionProviderService protectionProviderService, IUserValidator <User> userValidator, IUsedPasswordsService usedPasswordsService, IUsersPhotoService usersPhotoService, IOptionsSnapshot <SiteSettings> siteOptions, IEmailSender emailSender, ILogger <UserProfileController> logger) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _signInManager = signInManager; _signInManager.CheckArgumentIsNull(nameof(_signInManager)); _protectionProviderService = protectionProviderService; _protectionProviderService.CheckArgumentIsNull(nameof(_protectionProviderService)); _userValidator = userValidator; _userValidator.CheckArgumentIsNull(nameof(_userValidator)); _usedPasswordsService = usedPasswordsService; _usedPasswordsService.CheckArgumentIsNull(nameof(_usedPasswordsService)); _usersPhotoService = usersPhotoService; _usersPhotoService.CheckArgumentIsNull(nameof(_usersPhotoService)); _siteOptions = siteOptions; _siteOptions.CheckArgumentIsNull(nameof(_siteOptions)); _emailSender = emailSender; _emailSender.CheckArgumentIsNull(nameof(_emailSender)); _logger = logger; _logger.CheckArgumentIsNull(nameof(_logger)); }
public IdentityDbInitializer( IApplicationUserManager applicationUserManager, IServiceScopeFactory scopeFactory, IApplicationRoleManager roleManager, IOptionsSnapshot <SiteSettings> adminUserSeedOptions, ILogger <IdentityDbInitializer> logger ) { _applicationUserManager = applicationUserManager; _applicationUserManager.CheckArgumentIsNull(nameof(_applicationUserManager)); _scopeFactory = scopeFactory; _scopeFactory.CheckArgumentIsNull(nameof(_scopeFactory)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _adminUserSeedOptions = adminUserSeedOptions; _adminUserSeedOptions.CheckArgumentIsNull(nameof(_adminUserSeedOptions)); _logger = logger; _logger.CheckArgumentIsNull(nameof(_logger)); }
public AccountController(IApplicationUserManager userManager, IApplicationRoleManager roleManager, IjwtService jwtService, IRefreshTokenService refreshToken, IOptionsSnapshot <SiteSettings> settings, IHttpContextAccessor httpContextAccessor) { _userManager = userManager; _userManager.CheckArgumentIsNull(nameof(_userManager)); _roleManager = roleManager; _roleManager.CheckArgumentIsNull(nameof(_roleManager)); _jwtService = jwtService; _userManager.CheckArgumentIsNull(nameof(_userManager)); _refreshTokenService = refreshToken; _userManager.CheckArgumentIsNull(nameof(_refreshTokenService)); _httpContextAccessor = httpContextAccessor; _userManager.CheckArgumentIsNull(nameof(_httpContextAccessor)); _settings = settings.Value; _userManager.CheckArgumentIsNull(nameof(_settings)); }