public AuthenticationService(UserManager <User> userManager, SignInManager <User> signInManager, IJwtUser user, IOptions <JwtSettings> jwtSettings, IOptions <FacebookAuthSettings> facebookAuthSettings, IOptions <RefreshTokenSettings> refreshTokenSettings, IdentityDbContext context, IMapper mapper) { this.UserManager = userManager; this.SignInManager = signInManager; this.JwtSettings = jwtSettings.Value; this.FacebookAuthSettings = facebookAuthSettings.Value; this.RefreshTokenSettings = refreshTokenSettings.Value; this.Context = context; this.Mapper = mapper; }
public Handler( AppDb db, IJwtHandler jwtHandler, IHasher hasher, RefreshTokenSettings refreshTokenSettings) { _db = db; _jwtHandler = jwtHandler; _hasher = hasher; _refreshTokenSettings = refreshTokenSettings; }
public AccountsService( UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IOptions <AccessTokenSettings> accessTokenSettings, IOptions <RefreshTokenSettings> refreshTokenSettings, IMapper mapper, IdentityContext context) { this._userManager = userManager; this._roleManager = roleManager; this._accessTokenSettings = accessTokenSettings.Value; this._refreshTokenSettings = refreshTokenSettings.Value; this._mapper = mapper; this._context = context; }