public IdentityService(UserManager <IdentityUser> userManager, JwtSettings jwtSettings, TokenValidationParameters tokenValidationParameters, DataContext context, IFacebookAuthService facebookAuthService)
 {
     _userManager = userManager;
     _jwtSettings = jwtSettings;
     _tokenValidationParameters = tokenValidationParameters;
     _context             = context;
     _facebookAuthService = facebookAuthService;
 }
 public IdentityService(UserManager <IdentityUser> userManager, JwtSettings jwtSettings,
                        TokenValidationParameters tokenValidationParameters, DataContext dataContext, IFacebookAuthService facebookAuthService)
 {
     this.userManager = userManager;
     this.jwtSettings = jwtSettings;
     this.tokenValidationParameters = tokenValidationParameters;
     this.dataContext         = dataContext;
     this.facebookAuthService = facebookAuthService;
 }
Пример #3
0
 public ExternaLoginService(IFacebookAuthService facebookAuthService, IUserRepository userRepository,
                            IJwtHandler jwtHandler, IRefreshTokenFactory refreshTokenFactory, IRefreshTokenRepository refreshTokenRepository,
                            UserManager <User> userManager, IAthleteService athleteService)
 {
     _facebookAuthService    = facebookAuthService;
     _userRepository         = userRepository;
     _jwtHandler             = jwtHandler;
     _refreshTokenFactory    = refreshTokenFactory;
     _refreshTokenRepository = refreshTokenRepository;
     _userManager            = userManager;
     _athleteService         = athleteService;
 }
Пример #4
0
 public IdentityService(UserManager <AppUser> userManager, RoleManager <IdentityRole> roleManager,
                        SignInManager <AppUser> signInManager, IOptions <JwtSettings> options,
                        TokenValidationParameters tokenValidationParameters, DataContext dataContext,
                        IFacebookAuthService facebookAuthService)
 {
     this.signInManager             = signInManager;
     this.userManager               = userManager;
     this.roleManager               = roleManager;
     this.options                   = options.Value;
     this.tokenValidationParameters = tokenValidationParameters;
     this.dataContext               = dataContext;
     this.facebookAuthService       = facebookAuthService;
 }
Пример #5
0
 public IdentityService(
     UserManager <ApplicationUser> userManager,
     TokenValidationParameters tokenValidationParameters,
     IApplicationDbContext context,
     IFacebookAuthService facebookAuthService,
     JwtOptions jwtOptions)
 {
     _userManager = userManager;
     _tokenValidationParameters = tokenValidationParameters;
     _context             = context;
     _facebookAuthService = facebookAuthService;
     _jwtOptions          = jwtOptions;
 }
Пример #6
0
 public ExternalLoginServiceTests()
 {
     _fixture                = new Fixture();
     _facebookAuthService    = Substitute.For <IFacebookAuthService>();
     _userRepository         = Substitute.For <IUserRepository>();
     _jwtHandler             = Substitute.For <IJwtHandler>();
     _refreshTokenFactory    = new RefreshTokenFactory(new Rng(), new DateTimeProvider());
     _refreshTokenRepository = Substitute.For <IRefreshTokenRepository>();
     _fakeUserManager        = Substitute.For <FakeUserManager>();
     _athleteService         = Substitute.For <IAthleteService>();
     _sut = new ExternaLoginService(_facebookAuthService, _userRepository, _jwtHandler,
                                    _refreshTokenFactory, _refreshTokenRepository, _fakeUserManager, _athleteService);
 }
Пример #7
0
 public AuthService(IPasswordHasher hasher,
                    IMapper mapper,
                    IJwtManager jwtManager,
                    IUserRepository userRepository,
                    IRefreshtokenService refreshTokenService,
                    IFacebookAuthService facebookAuthService)
 {
     _facebookAuthService = facebookAuthService;
     _hasher              = hasher;
     _mapper              = mapper;
     _jwtManager          = jwtManager;
     _userRepository      = userRepository;
     _refreshTokenService = refreshTokenService;
 }
Пример #8
0
 public AccountController(
     EFContext context,
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IJWTTokenService jWtTokenService,
     IFacebookAuthService facebookAuthService
     )
 {
     this.userManager         = userManager;
     this.context             = context;
     this.signInManager       = signInManager;
     jwtTokenService          = jWtTokenService;
     this.facebookAuthService = facebookAuthService;
 }
 public AccountController(UserManager <AppUser> userManager,
                          SignInManager <AppUser> signInManager,
                          IPasswordHasher <AppUser> passwordHasher,
                          GalileuszSchoolContext context,
                          ILogger <AccountController> logger,
                          IEmailSender emailSender,
                          StudentsController studentsController,
                          TeachersController teachersController,
                          IFacebookAuthService facebookAuthService
                          )
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _passwordHasher      = passwordHasher;
     _context             = context;
     _logger              = logger;
     _emailSender         = emailSender;
     _studentsController  = studentsController;
     _teachersController  = teachersController;
     _facebookAuthService = facebookAuthService;
 }
Пример #10
0
 public AuthenticationService(ApiDbContext _ctx,
                              UserManager <User> _userManager,
                              SignInManager <User> _signInManager,
                              IHttpContextAccessor _httpContextAccessor,
                              IGoogleAuthService _googleAuthService,
                              IFacebookAuthService _facebookAuthService,
                              IEmailService _emailService,
                              IOptions <AuthenticationOptions> _authenticationOptions,
                              IOptions <GoogleOptions> _googleOptions,
                              IMapper _mapper)
 {
     ctx                   = _ctx;
     userManager           = _userManager;
     signInManager         = _signInManager;
     facebookAuthService   = _facebookAuthService;
     mapper                = _mapper;
     authenticationOptions = _authenticationOptions;
     googleAuthService     = _googleAuthService;
     emailService          = _emailService;
     httpContextAccessor   = _httpContextAccessor;
 }
 public FacebookAuthController(IFacebookAuthService facebookAuthService, IUserService userService, JwtSettings jwtSettings)
 {
     _facebookAuthService = facebookAuthService;
     _userService         = userService;
     _jwtSettings         = jwtSettings;
 }
 public IdentityController(IIdentityAppService identityAppService, IFacebookAuthService facebookAuthService, IAccountAppService accountAppService)
 {
     this.identityAppService  = identityAppService;
     this.facebookAuthService = facebookAuthService;
     this.accountAppService   = accountAppService;
 }
Пример #13
0
 public CustomersService(DataContext dataContext, JwtSettings jwtSettings, IFacebookAuthService facebookAuthService)
 {
     _dataContext         = dataContext;
     _jwtSettings         = jwtSettings;
     _facebookAuthService = facebookAuthService;
 }
 public AuthenticationService(UserManager <User> userManager, IOptions <AuthOptions> authOptions, IFacebookAuthService facebookAuthService)
 {
     _userManager         = userManager;
     _authOptions         = authOptions;
     _facebookAuthService = facebookAuthService;
 }
 public DeliverymanService(DataContext dataContext, JwtSettings jwtSettings, IFacebookAuthService facebookAuthService)
 {
     _dataContext         = dataContext;
     _jwtSettings         = jwtSettings;
     _facebookAuthService = facebookAuthService;
 }
Пример #16
0
 public AccountController(UserManager <User> userManager, IOptions <AuthOptions> authOptions, IFacebookAuthService facebookAuthService)
 {
     _userManager         = userManager;
     _authOptions         = authOptions;
     _facebookAuthService = facebookAuthService;
 }
Пример #17
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IFacebookAuthService facebookAuthService)
 {
     _logger = logger;
     _facebookAuthService = facebookAuthService;
 }
Пример #18
0
 public StoreOwnerService(DataContext dataContext, JwtSettings jwtSettings, IFacebookAuthService facebookAuthService)
 {
     _dataContext         = dataContext;
     _jwtSettings         = jwtSettings;
     _facebookAuthService = facebookAuthService;
 }
Пример #19
0
 public IdentityService(FacebookAuthService facebookAuthService, UserManager userManager)
 {
     _facebookAuthService = facebookAuthService;
     _userManager         = userManager;
 }