Esempio n. 1
0
 public AuthController(IJwtAuthenticationManager authenticationManager, UserManager <User> userManager, SignInManager <User> signInManager, IConfiguration configuration)
 {
     _authenticationManager = authenticationManager;
     _userManager           = userManager;
     _signInManager         = signInManager;
     _config = configuration;
 }
 public GetLoginQueryHandler(
     ILoginRepository loginRepository,
     IJwtAuthenticationManager jwtAuthenticationManager)
 {
     _loginRepository          = loginRepository ?? throw new ArgumentNullException(nameof(loginRepository));
     _jwtAuthenticationManager = jwtAuthenticationManager ?? throw new ArgumentNullException(nameof(jwtAuthenticationManager));
 }
Esempio n. 3
0
 public AccountController(IJwtAuthenticationManager jwtManager, IUserRepository repo,
                          IConfiguration configuration, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, SignInManager <ApplicationUser> signInManager)
 {
     _repo          = repo;
     _jwtMananager  = jwtManager;
     _configManager = configuration;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
Esempio n. 4
0
 public AuthController(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IConfiguration configuration,
                       IJwtAuthenticationManager JwtAuthenticationManager, SchoolManagementContext dbcontext)
 {
     this._JwtAuthenticationManager = JwtAuthenticationManager;
     this._dbcontext  = dbcontext;
     this.userManager = userManager;
     this.roleManager = roleManager;
     _configuration   = configuration;
 }
Esempio n. 5
0
 public AccountService(IMapper mapper, IJwtAuthenticationManager jwtAuthenticationManager, ILogger <AccountService> logger, IMailService mailService,
                       IFraudClaimRepository fraudClaimRepository, IRepositoryFactory repositoryFactory)
 {
     _mapper = mapper;
     _jwtAuthenticationManager = jwtAuthenticationManager;
     _logger               = logger;
     _mailService          = mailService;
     _fraudClaimRepository = fraudClaimRepository;
     _repositoryFactory    = repositoryFactory;
 }
 public JwtAuthenticationManagerTests()
 {
     _repository = new Repository <ApplicationUser>(Context);
     _options    = Options.Create(new AppSettings
     {
         SecretEncryptionKey = "supersecret123testing456key",
         EmailFrom           = "*****@*****.**",
         SmtpHost            = "*****@*****.**",
         SmtpPort            = 111,
         SmtpUser            = "******",
         SmtpPass            = "******"
     });
     _emailService             = new EmailService(_options);
     _jwtAuthenticationManager = new JwtAuthenticationManager(Context, _options, _repository, _emailService);
 }
        public UserController(UserRepository repository,
                              IJwtAuthenticationManager jwtAuthenticationManager,
                              IMapper mapper,

                              /*UserManager userManager,
                               * SignInManager signInManager,*/
                              IOptions <AppSettings> appSettings)
        {
            this._jwtAuthenticationManager = jwtAuthenticationManager;
            this._repo   = repository;
            this._mapper = mapper;
            //this._userManager = userManager;
            //this._signInManager = signInManager;
            this._appSettings = appSettings.Value;
        }
Esempio n. 8
0
 public UnitOfWork(ICustomerRepository CustomerRepository, IManagerRepository ManagerRepository,
                   IMapper Mapper, IMailService MailService, IRepositoryHelper RepositoryHelper,
                   IServiceRepository ServiceRepository, IEmployeeRepository EmployeeRepository,
                   ILaundryRepository LaundryRepository, IInvoiceRepository InvoiceRepository,
                   IJwtAuthenticationManager JwtAuthenticationManager,
                   IDashboardRepo DashboardRepo)
 {
     this.CustomerRepository       = CustomerRepository;
     this.EmployeeRepository       = EmployeeRepository;
     this.ManagerRepository        = ManagerRepository;
     this.MailService              = MailService;
     this.Mapper                   = Mapper;
     this.InvoiceRepository        = InvoiceRepository;
     this.ServiceRepository        = ServiceRepository;
     this.InvoiceRepository        = InvoiceRepository;
     this.JwtAuthenticationManager = JwtAuthenticationManager;
     this.LaundryRepository        = LaundryRepository;
     this.DashboardRepo            = DashboardRepo;
 }
Esempio n. 9
0
 public UserController(IJwtAuthenticationManager JwtAuthenticationManager)
 {
     this.JwtAuthenticationManager = JwtAuthenticationManager;
 }
Esempio n. 10
0
 public Token(IJwtAuthenticationManager authenticationManager)
 {
     this.authenticationManager = authenticationManager;
 }
Esempio n. 11
0
 public TokenManager(IJwtAuthenticationManager jwtAuthenticationManager)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 12
0
 public NameController(IJwtAuthenticationManager jWTAuthenticationManager, ITokenRefresher tokenRefresher)
 {
     this.jWTAuthenticationManager = jWTAuthenticationManager;
     this.tokenRefresher           = tokenRefresher;
 }
Esempio n. 13
0
 public LoginController(ILoginManagement loginManagement, IJwtAuthenticationManager jwtAuthenticationManager)
 {
     _loginManagement          = loginManagement;
     _jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 14
0
 public AuthBusiness(InveonContext _inveonContext, IJwtAuthenticationManager _jwtAuthenticationManager)
 {
     inveonContext            = _inveonContext;
     jwtAuthenticationManager = _jwtAuthenticationManager;
 }
Esempio n. 15
0
 public BaseController(Dal.DataAccess.FileHosterRepoContext context, IJwtAuthenticationManager authenticationManager)
 {
     this.context = context;
     this.authenticationManager = authenticationManager;
     token = new Token(authenticationManager);
 }
Esempio n. 16
0
 public AuthenticationController(Context context, IJwtAuthenticationManager jwtAuthenticationManager, ITokenRefresher tokenRefresher)
 {
     _db = context;
     this.jwtAuthenticationManager = jwtAuthenticationManager;
     this.tokenRefresher           = tokenRefresher;
 }
 public ToDoListController(IJwtAuthenticationManager jwtAuthenticationManager, IToDoListServices services)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
     _services = services;
 }
Esempio n. 18
0
 public UserController(DataCtx dataContx, IJwtAuthenticationManager ajwtAuthenticationManage)
 {
     this.dataContx = dataContx;
     this.jwtAuthenticationManager = ajwtAuthenticationManage;
 }
 public TokenController(IJwtAuthenticationManager jwtAuthenticationManager, ITokenRefresher tokenRefresher, IUserService userService)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
     this.tokenRefresher           = tokenRefresher;
     this.userService = userService;
 }
Esempio n. 20
0
 public SessionController(IJwtAuthenticationManager jwtAuthenticationManager)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
 }
 public TokenRefresher(byte[] refreshKey, IJwtAuthenticationManager jwtAuthenticationManager)
 {
     this.refreshKey = refreshKey;
     this.jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 22
0
 public ProfilingController(IJwtAuthenticationManager jwtAuthenticationManager, ProfilingRepository profilingRepository) : base(profilingRepository)
 {
     this.profilingRepository      = profilingRepository;
     this.jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 23
0
 public AuthController(IJwtAuthenticationManager jwtAuthenticationManager, ApplicationDbContext context)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
     this._context = context;
 }
Esempio n. 24
0
 public AuthController(IJwtAuthenticationManager jwtAuthManager)
 {
     _jwtAuthManager = jwtAuthManager;
 }
Esempio n. 25
0
 public TokenRefresher(string key, IJwtAuthenticationManager jwtAuthenticationManager)
 {
     _key = key;
     _jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 26
0
 /// <summary>
 ///     Construtor
 /// </summary>
 /// <param name="jWtAuthenticationManager">Gestor de autenticação</param>
 public SecurityController(IJwtAuthenticationManager jWtAuthenticationManager)
 {
     _jWtAuthenticationManager = jWtAuthenticationManager;
 }
Esempio n. 27
0
 public NameController(IJwtAuthenticationManager jwtAuthenticationManager)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
 }
Esempio n. 28
0
 public LoginController(IJwtAuthenticationManager authManager, IRestService restService, ILogger <LoginController> logger)
 {
     _authManager = authManager;
     _restService = restService;
     _logger      = logger;
 }
Esempio n. 29
0
 public NameController(IJwtAuthenticationManager jwtAuthenticationManager, DatabaseContext DBContext)
 {
     this.jwtAuthenticationManager = jwtAuthenticationManager;
     this.DBContext = DBContext;
 }
Esempio n. 30
0
 public UserController(Dal.DataAccess.FileHosterRepoContext context, IJwtAuthenticationManager authenticationManager)
     : base(context, authenticationManager)
 {
 }