Exemplo n.º 1
0
 public UsersController(TestDBContext context, IAppUserService userService, IJwtAuthentication jwtAuthentication, IUnitOfWork unitOfWork)
 {
     _context           = context;
     _userService       = userService;
     _jwtAuthentication = jwtAuthentication;
     _unitOfWork        = unitOfWork as UnitOfWork;
 }
Exemplo n.º 2
0
 public Admin(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IConfiguration configuration, IJwtAuthentication jwtAuth)
 {
     _userManager   = userManager;
     _roleManager   = roleManager;
     _configuration = configuration;
     _auth          = jwtAuth;
 }
Exemplo n.º 3
0
 public ApiAuthentication(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IConfiguration config, IJwtAuthentication jwtAuth)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _config      = config;
     _jwtAuth     = jwtAuth;
 }
Exemplo n.º 4
0
 public UserAuthentication(IMapper mapper, IJwtAuthentication authService,
                           IRepository <User> userRepository, IRepository <Token> tokenRepository)
 {
     _mapper          = mapper;
     _authService     = authService;
     _userRepository  = userRepository;
     _tokenRepository = tokenRepository;
 }
Exemplo n.º 5
0
 public UserService(UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, IJwtAuthentication jwtAuthentication,
                    IEmailSender emailSender, IConfiguration configuration, IEmailConfirmationTokenRepository emailRepo, SignInManager <ApplicationUser> signInManager)
 {
     _emailRepo         = emailRepo;
     _configuration     = configuration;
     _emailSender       = emailSender;
     _jwtAuthentication = jwtAuthentication;
     _roleManager       = roleManager;
     _userManager       = userManager;
     _signInManager     = signInManager;
 }
Exemplo n.º 6
0
        public ChatHub(ILogger <ChatHub> logger, IJwtAuthentication jwtAuth, UserManager <ApplicationUser> userManager)
        {
            _logger      = logger;
            _jwtAuth     = jwtAuth;
            _userManager = userManager;

            //first god message
            if (messages.Count == 0)
            {
                messages.Add(new Message()
                {
                    User = new ChatUser("Creator", "0", "https://upload.wikimedia.org/wikipedia/commons/7/7c/Cima_da_Conegliano%2C_God_the_Father.jpg", 24990000), Content = "Hello World"
                });
            }
        }
 public AuthenticationController(IJwtAuthentication jwtAuthentication)
 {
     _jwtAuthentication = jwtAuthentication;
 }
Exemplo n.º 8
0
 public AccountController(IJwtAuthentication jwtAuthentication, IUserService userService)
 {
     this.jwtAuthentication = jwtAuthentication;
     this.userService       = userService;
 }
Exemplo n.º 9
0
 public AuthController(UserManager <ApplicationUser> userManager, IUserService userService, IJwtAuthentication jwtAuth)
 {
     _userService = userService;
     _userManager = userManager;
     _jwtAuth     = jwtAuth;
 }