public SuperAdminnService(IAuthService _authService, ISuperAdminRepo superAdminRepo, IAuthRepo _authRepo, ICommonEmailsService ICommonEmailsService) { _superAdminRepo = superAdminRepo; authRepo = _authRepo; authService = _authService; commonEmailsService = ICommonEmailsService; }
public AuthController(IConfiguration _config, IAuthRepo _repo, IMapper _mapper, IBuyerRepository _BRepo) { config = _config; repo = _repo; mapper = _mapper; bRepo = _BRepo; }
public AuthController(IAuthRepo repo, IConfiguration configuration, IAuditTrailRepo auditTrailRepo) { _repo = repo; _configuration = configuration; _auditTrailRepo = auditTrailRepo; _auditTrailRepo.Module = SystemModule.Auth; }
public AuthController( IConfiguration configuration, IJwtSecurity jwtSecurity, IAuthRepo authRepo, ILogger <AuthController> logger ) { _configuration = configuration; _jwtSecurity = jwtSecurity; _authRepo = authRepo; _logger = logger; }
public void Setup() { var sqlConnString = File.ReadAllText("Properties/SQLString.txt"); _authRepo = new SimpleAuthRepo(); var serviceProvider = CreateServices(sqlConnString); // Put the database update into a scope to ensure // that all resources will be disposed. using var scope = serviceProvider.CreateScope(); RebuildDB(scope.ServiceProvider); }
public GoogleAuthService(ApplicationDbContext db, IOptions <GoogleAuthConfig> googleConfig, UserManager <Account> userManager, IConfiguration config, IAuthRepo authRepo) { _db = db; _googleConfig = new GoogleAuthConfig() { ClientId = googleConfig.Value.ClientId, ClientSecret = googleConfig.Value.ClientSecret }; _userManager = userManager; _config = config; _authRepo = authRepo; }
public FacebookAuthService(ApplicationDbContext db, UserManager <Account> userManager, IOptions <FacebookAuthConfig> facebookConfig, IHttpClientFactory httpClient, IConfiguration config, IAuthRepo authRepo) { _db = db; _userManager = userManager; _facebookConfig = new FacebookAuthConfig() { AppId = facebookConfig.Value.AppId, AppSecret = facebookConfig.Value.AppSecret }; _httpClient = httpClient; _config = config; _authRepo = authRepo; }
public AccountsController(IAuthRepo repo, ICRUDRepo cRUDRepo, IMapper mapper, IConfiguration config, IOptions <CloudinarySettings> cloudinarySettings, Func <ServiceEnum, IAuthService> serviceResolver, UserManager <Models.Account> userManager, RoleManager <Models.Role> roleManager, SignInManager <Models.Account> signinManager) { _roleManager = roleManager; _signinManager = signinManager; _userManager = userManager; _cRUDRepo = cRUDRepo; _config = config; _googleService = serviceResolver(ServiceEnum.Google); _facebookService = serviceResolver(ServiceEnum.Facebook); _mapper = mapper; _repo = repo; var account = new CloudinaryDotNet.Account() { Cloud = cloudinarySettings.Value.CloudName, ApiKey = cloudinarySettings.Value.ApiKey, ApiSecret = cloudinarySettings.Value.ApiSecret }; _cloud = new CloudinaryHelper(account); }