Пример #1
0
 protected BaseController(INotificator notificator, IJwtUser appUser)
 {
     this.Notificator = notificator;
     this.AppUser     = appUser;
 }
Пример #2
0
 public AuthController(INotificator notificator, IJwtUser user, IOptions <FacebookAuthSettings> facebookAuthSettings, AuthenticationService authenticationService) : base(notificator, user)
 {
     this.FacebookAuthSettings  = facebookAuthSettings.Value;
     this.AuthenticationService = authenticationService;
 }
Пример #3
0
 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;
 }