Exemplo n.º 1
0
        public AccountController(
            IUsersService usersService,
            ITokenStoreService tokenStoreService,
            ILoginService loginService,
            IAuthLevelService authLevelService,
            IPolicyService policyService,
            IRolesService rolesService,
            IUnitOfWork uow,
            IMapper mapper)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));

            _loginService = loginService;
            _loginService.CheckArgumentIsNull(nameof(_loginService));

            _authLevelService = authLevelService;
            _authLevelService.CheckArgumentIsNull(nameof(_authLevelService));

            _policyService = policyService;
            _policyService.CheckArgumentIsNull(nameof(_policyService));

            _roleService = rolesService;
            _roleService.CheckArgumentIsNull(nameof(_roleService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _mapper = mapper;
            _mapper.CheckArgumentIsNull(nameof(_mapper));
        }
Exemplo n.º 2
0
        public AccountController(
            IApplicationUserManager usersService,
            ITokenStoreService tokenStoreService,
            ITokenFactoryService tokenFactoryService,
            IApplicationSignInManager signInManager,
            IUnitOfWork uow

            )
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _signInManager = signInManager;
            _signInManager.CheckArgumentIsNull(nameof(_signInManager));


            _tokenFactoryService = tokenFactoryService;
            _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));
        }
Exemplo n.º 3
0
        public AccountController(
            IUsersService usersService,
            ITokenStoreService tokenStoreService,
            ITokenFactoryService tokenFactoryService,
            IUnitOfWork uow,
            IAntiForgeryCookieService antiforgery,
            ITagServices tagServices,
            IZirReshtehServices zirReshteh
            )
        {
            _zirreshteh   = zirReshteh;
            _Tags         = tagServices;
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));

            _tokenFactoryService = tokenFactoryService;
            _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));
        }
Exemplo n.º 4
0
        public TokenValidatorService(IUsersService usersService, ITokenStoreService tokenStoreService)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
        public TokenValidatorService(IApplicationUserManager usersService, ITokenStoreService tokenStoreService)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
Exemplo n.º 6
0
        public AccountController(IUsersService usersService, ITokenStoreService tokenStoreService)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
Exemplo n.º 7
0
        public TokenValidatorService(IUserStore <User> usersStoreService, ITokenStoreService tokenStoreService, ILastLoggedIn lastLoggedIn)
        {
            _usersStoreService = usersStoreService;
            _usersStoreService.CheckArgumentIsNull(nameof(usersStoreService));

            _tokenStoreService = tokenStoreService;
            _lastLoggedIn      = lastLoggedIn;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
Exemplo n.º 8
0
 public AccountService(ITokenFactoryService tokenFactoryService,
                       ITokenStoreService tokenStoreService,
                       IUnitOfWork uow,
                       IAntiForgeryCookieService antiforgery)
 {
     _tokenFactoryService = tokenFactoryService;
     _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));
     _uow         = uow;
     _antiforgery = antiforgery;
     _antiforgery.CheckArgumentIsNull(nameof(antiforgery));
     _tokenStoreService = tokenStoreService;
     _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));
 }
Exemplo n.º 9
0
        public AccountController(
            IUsersService usersService,
            ITokenStoreService tokenStoreService,
            IUnitOfWork uow,
            IOptionsSnapshot <BearerTokensOptions> configuration)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));
        }
        //private readonly ISignalRServices _signalRServices;
        //private readonly IAntiForgeryCookieService _antiforgery;

        public AccountController(
            IUsersService usersService,
            ITokenStoreService tokenStoreService)
        //ISignalRServices signalRServices)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            //_signalRServices = signalRServices;
            //_signalRServices.CheckArgumentIsNull(nameof(_signalRServices));

            //_antiforgery = antiforgery;
            //_antiforgery.CheckArgumentIsNull(nameof(antiforgery));
        }
Exemplo n.º 11
0
        public AccountController(
            IUsersUserIdentityServiceJwt usersService,
            ITokenStoreService tokenStoreService,
            IUnitOfWork uow,
            IAntiForgeryCookieService antiforgery)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));
        }
        public SecurityController(
            IUserService userService,
            ITokenStoreService tokenStoreService,
            ITokenFactoryService tokenFactoryService,
            IAntiForgeryCookieService antiforgery)
        {
            _userService = userService;
            _userService.CheckArgumentIsNull(nameof(userService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));

            _tokenFactoryService = tokenFactoryService;
            _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));
        }
Exemplo n.º 13
0
        public AuthController(IUsersService usersService, ITokenStoreService tokenStoreService, ITokenFactoryService tokenFactoryService, IUnitOfWork uow, IAntiForgeryCookieService antiforgery, ILogger <AuthController> logger)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));

            _tokenFactoryService = tokenFactoryService;
            _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));

            _logger = logger;
        }
Exemplo n.º 14
0
        public AccountsController(
            IUserService usersService,
            ITokenStoreService tokenStoreService,
            ITokenFactoryService tokenFactoryService,
            IAuthenticationUnitOfWork uow,
            IAntiForgeryCookieService antiforgery)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(tokenStoreService));

            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _antiforgery = antiforgery;
            _antiforgery.CheckArgumentIsNull(nameof(antiforgery));

            _tokenFactoryService = tokenFactoryService;
            _tokenFactoryService.CheckArgumentIsNull(nameof(tokenFactoryService));
        }