Example #1
0
 public ScheduleService(AppDbContext appDbContext, IHttpContextAccessor httpContextAccessor, IDataStore dataStore, IOptions <GoogleAuthOptions> googleAuthOptions)
 {
     _appDbContext        = appDbContext;
     _httpContextAccessor = httpContextAccessor;
     _dataStore           = dataStore;
     _googleAuthOptions   = googleAuthOptions.Value;
 }
Example #2
0
 public AuthController(FacebookAuthOptions facebookOptions,
                       GoogleAuthOptions googeOptions,
                       TwitterAuthOptions twitterOptions)
 {
     this.facebookOptions = facebookOptions;
     this.googeOptions    = googeOptions;
     this.twitterOptions  = twitterOptions;
 }
 public GoogleAuthService(IHttpClientFactory factory,
                          IOptions <GoogleAuthOptions> googleAuthOptions,
                          EmailAppManagerContext context)
 {
     this.factory = factory ?? throw new ArgumentNullException(nameof(factory));
     this.options = googleAuthOptions?.Value ?? throw new ArgumentNullException(nameof(googleAuthOptions));
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
        public AuthenticateController(IAuthService authService, IRefreshTokenService refreshTokenService, IUsersService usersService,
                                      IOptions <JwtOptions> jwtOptions, IOptions <GoogleAuthOptions> googleAuthOptions)
        {
            _authService         = authService;
            _refreshTokenService = refreshTokenService;
            _usersService        = usersService;

            _jwtOptions        = jwtOptions.Value;
            _googleAuthOptions = googleAuthOptions.Value;
        }
Example #5
0
 public AuthController(IDataStore dataStore, IOptions <GoogleAuthOptions> googleAuthOptions)
 {
     _dataStore         = dataStore;
     _googleAuthOptions = googleAuthOptions.Value;
 }