예제 #1
0
 public AuthController(SignInManager <IdentityUser> signInManager,
                       UserManager <IdentityUser> userManager,
                       IOptions <AppJwtSettings> appJwtSettings)
 {
     _signInManager  = signInManager;
     _userManager    = userManager;
     _appJwtSettings = appJwtSettings.Value;
 }
 public AuthCustomConfigAndKeyController(SignInManager <MyIntIdentityUser> signInManager,
                                         UserManager <MyIntIdentityUser> userManager,
                                         IOptions <AppJwtSettings> appJwtSettings)
 {
     _signInManager  = signInManager;
     _userManager    = userManager;
     _appJwtSettings = appJwtSettings.Value;
 }
 public AutenticacaoService(SignInManager <UserIdentity> signInManager, UserManager <UserIdentity> userManager,
                            IOptions <AppJwtSettings> appJwtSettings, INotificador notificator)
 {
     _signInManager  = signInManager;
     _userManager    = userManager;
     _notificator    = notificator;
     _appJwtSettings = appJwtSettings.Value;
     _acessor        = new HttpContextAccessor();
 }
예제 #4
0
 public AccountController(SignInManager <MyIdentityUser> signInManager,
                          UserManager <MyIdentityUser> userManager,
                          IEmailSender emailService,
                          IOptions <AppJwtSettings> appJwtSettings)
 {
     _emailService   = emailService;
     _signInManager  = signInManager;
     _userManager    = userManager;
     _appJwtSettings = appJwtSettings.Value;
 }
 public AccountsController(
     SignInManager <ApplicationUser> signInManager,
     UserManager <ApplicationUser> userManager,
     IOptions <AppJwtSettings> appJwtSettings,
     IEmailSenderService emailSenderService)
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _appJwtSettings     = appJwtSettings.Value;
     _emailSenderService = emailSenderService;
 }
예제 #6
0
 public UserService(SignInManager <ApplicationUser> signInManager,
                    UserManager <ApplicationUser> userManager,
                    IMapper mapper,
                    IOptions <AppJwtSettings> appJwtSettings,
                    ITokenRefreshService tokenRefreshService)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _mapper              = mapper;
     _tokenRefreshService = tokenRefreshService;
     _appJwtSettings      = appJwtSettings.Value;
 }
예제 #7
0
 public CustomJwtBuilder <TIdentityUser> WithJwtSettings(AppJwtSettings appJwtSettings)
 {
     _appJwtSettings = appJwtSettings ?? throw new ArgumentException(nameof(appJwtSettings));
     return(this);
 }
예제 #8
0
 public AuthUser(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IOptions <AppJwtSettings> appJwtSettings)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _appJwtSettings = appJwtSettings.Value;
 }