Exemple #1
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ITokenService tokenService,
     ApplicationUserDbContext dbContext,
     IMapper mapper,
     IRandomPasswordHelper randomPasswordHelper,
     IExternalAuthService <FacebookResponse> facebookService,
     IExternalAuthService <GoogleResponse> googleService,
     ILogger <AccountController> logger,
     IHostingEnvironment hostingEnvironment,
     IChallengeUserSyncService challengeUserSyncService,
     ILoyaltySyncService loyaltySyncService,
     ILoyaltyService loyaltyService,
     IGameUserSyncService gameUserSyncService,
     IImageService imageService,
     IStringLocalizer <AccountController> localizer)
 {
     _userManager              = userManager;
     _signInManager            = signInManager;
     _tokenService             = tokenService;
     _dbContext                = dbContext;
     _mapper                   = mapper;
     _randomPasswordHelper     = randomPasswordHelper;
     _facebookService          = facebookService;
     _googleService            = googleService;
     _logger                   = logger;
     _hostingEnvironment       = hostingEnvironment;
     _challengeUserSyncService = challengeUserSyncService;
     _loyaltySyncService       = loyaltySyncService;
     _loyaltyService           = loyaltyService;
     _gameUserSyncService      = gameUserSyncService;
     _imageService             = imageService;
     _localizer                = localizer;
 }
Exemple #2
0
 public AuthController(IExternalAuthService externalAuthService, IExternalPersonService externalPersonService, IPersonService personService, IAntiforgery antiforgery)
 {
     _externalAuthService   = externalAuthService;
     _externalPersonService = externalPersonService;
     _personService         = personService;
     _antiforgery           = antiforgery;
 }
 public PaymentService(IExternalAuthService externalAuthService,
                       IHttpClientWrapper httpClient, IOptions <PaystackSettings> paystackSettings)
 {
     _externalAuthService = externalAuthService;
     _httpClient          = httpClient;
     _paystackSettings    = paystackSettings.Value;
 }
Exemple #4
0
        public WalletAccount(Near near, string appKeyPrefix, IExternalAuthService authService, IExternalAuthStorage authStorage)
        {
            _networkId     = near.Config.NetworkId;
            _walletBaseUrl = near.Config.WalletUrl;
            appKeyPrefix   = string.IsNullOrEmpty(appKeyPrefix) || string.IsNullOrWhiteSpace(appKeyPrefix)
                ? "default"
                : appKeyPrefix;
            _authDataKey = $"{appKeyPrefix}{LocalStorageKeySuffix}";
            _keyStore    = (near.Connection.Signer as InMemorySigner).KeyStore;
            _authService = authService;
            _authStorage = authStorage;


            if (_authStorage.HasKey(_authDataKey))
            {
                _authData.AccountId = _authStorage.GetValue(_authDataKey);
            }
            else
            {
                _authData.AccountId = null;
            }
        }
Exemple #5
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ITokenService tokenService,
     ApplicationUserDbContext dbContext,
     IMapper mapper,
     IRandomPasswordHelper randomPasswordHelper,
     IExternalAuthService <FacebookResponse> facebookService,
     IExternalAuthService <GoogleResponse> googleService,
     ISpotPlayerSyncService spotPlayerSyncService,
     ILogger <AccountController> logger,
     IHostingEnvironment hostingEnvironment)
 {
     this.userManager       = userManager;
     this.signInManager     = signInManager;
     _tokenService          = tokenService;
     _dbContext             = dbContext;
     _mapper                = mapper;
     _randomPasswordHelper  = randomPasswordHelper;
     _facebookService       = facebookService;
     _googleService         = googleService;
     _spotPlayerSyncService = spotPlayerSyncService;
     _hostingEnvironment    = hostingEnvironment;
 }
Exemple #6
0
 public ExternalAuthController(
     IExternalAuthService externalAuthService)
 {
     this.externalAuthService = externalAuthService;
 }
 public ExternalAuthController(IExternalAuthService externalAuthService, ICommonAuthService commonAuthService)
 {
     _externalAuthService = externalAuthService;
     _commonAuthService   = commonAuthService;
 }
Exemple #8
0
 public ExternalAuthController(IExternalAuthService externalAuthService)
 {
     _externalLoginService = externalAuthService;
 }