Пример #1
0
 public IdentityService(UserManager <ApplicationUser> userManager, IEmailService emailService, IOptions <ClientAppSettings> client, IOptions <JwtSecurityTokenSettings> jwt, RoleManager <IdentityRole> roleManager)
 {
     _userManager  = userManager;
     _roleManager  = roleManager;
     _emailService = emailService;
     _client       = client.Value;
     _jwt          = jwt.Value;
 }
Пример #2
0
 public AuthController(
     UserManager <ApplicationUser> userManager,
     IOptions <JwtSecurityTokenSettings> jwt
     )
 {
     this._userManager = userManager;
     this._jwt         = jwt.Value;
 }
 public AccountService(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IOptions <JwtSecurityTokenSettings> jwt, IEmailScheduler emailScheduler)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     //_emailService = emailService;
     //_client = client.Value;
     _jwt            = jwt.Value;
     _emailScheduler = emailScheduler;
 }
Пример #4
0
 public LoginModel(SignInManager <ApplicationUser> signInManager,
                   ILogger <LoginModel> logger,
                   UserManager <ApplicationUser> userManager,
                   IMediator mediator,
                   IOptions <JwtSecurityTokenSettings> jwt,
                   IToastNotification toastNotification
                   )
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _logger            = logger;
     _mediator          = mediator;
     _jwt               = jwt.Value;
     _toastNotification = toastNotification;
 }
Пример #5
0
 public AuthController(
     UserManager <IdentityUser> userManager,
     RoleManager <IdentityRole> roleManager,
     IConfiguration configuration,
     IEmailService emailService,
     IOptions <ClientAppSettings> client,
     IOptions <JwtSecurityTokenSettings> jwt
     )
 {
     this._userManager   = userManager;
     this._roleManager   = roleManager;
     this._configuration = configuration;
     this._emailService  = emailService;
     this._client        = client.Value;
     this._jwt           = jwt.Value;
 }
Пример #6
0
 public AuthService(UserManager <User> userManager,
                    RoleManager <IdentityRole> roleManager,
                    SecurityContext securityContext,
                    IEmailService emailService,
                    TokenValidationParameters tokenValidationParameters,
                    IOptions <ClientAppSettings> client,
                    IOptions <JwtSecurityTokenSettings> jwtSettings)
 {
     _userManager               = userManager;
     _roleManager               = roleManager;
     _securityContext           = securityContext;
     _emailService              = emailService;
     _tokenValidationParameters = tokenValidationParameters;
     _client      = client.Value;
     _jwtSettings = jwtSettings.Value;
 }
Пример #7
0
 public TokenService(UserManager <IdentityUser> signInManager, JwtSecurityTokenSettings jwt)
 {
     _signInManager = signInManager;
     this._jwt      = jwt;
 }
Пример #8
0
 public LoginController(UserManager <IdentityUser> signInManager, IOptions <JwtSecurityTokenSettings> jwt)
 {
     _signInManager = signInManager;
     this._jwt      = jwt.Value;
 }