Esempio n. 1
0
 public HttpService(
     IAuthTokenService authTokenService,
     IOptions <RCLSDKOptions> options)
 {
     _authTokenService = authTokenService;
     _options          = options;
 }
Esempio n. 2
0
 public SignInHandler(IUserRepository userRepository, IPasswordHasher <User> passwordHasher, IAuthTokenService authTokenService, IAuthTokensCache tokensCache)
 {
     _userRepository   = userRepository;
     _passwordHasher   = passwordHasher;
     _authTokenService = authTokenService;
     _tokensCache      = tokensCache;
 }
Esempio n. 3
0
 public LoginSubMod(
     IInputEntryService entryService,
     IAuthTokenService authTokenService)
     : base(entryService)
 {
     _authTokenService = authTokenService;
 }
Esempio n. 4
0
 public UsuarioService(ICriptografia criptografia, IEmailService emailService, IRepositoryUsuario repository, IAuthTokenService authService)
 {
     this.criptografia = criptografia;
     this.emailService = emailService;
     this.repository   = repository;
     this.authService  = authService;
 }
 protected AuthController(IAuthTokenService tokenService, IUserService <TAuthUser> accountService, IClientService clientService, IAuthService <TAuthUser> auth)
 {
     _tokenService   = tokenService;
     _accountService = accountService;
     _clientService  = clientService;
     this.auth       = auth;
 }
Esempio n. 6
0
 public AuthService(UserManager <IdentityUser> userManager, IMapper mapper, IAuthTokenService tokenService, ILogger <AuthService> logger)
 {
     _userManager  = userManager;
     _mapper       = mapper;
     _tokenService = tokenService;
     _logger       = logger;
 }
Esempio n. 7
0
 public AccountController(
     ILoginService <AdminEntity> login,
     IAuthTokenService authTokenService)
 {
     this._login           = login;
     this.authTokenService = authTokenService;
 }
Esempio n. 8
0
 public AccountController(IRepository <User> userRepository, LangCodes langCodes,
                          IProfilePicRepository picRepository, IAuthTokenService <JwtBody> tokenService)
 {
     this.userRepository = userRepository;
     this.picRepository  = picRepository;
     this.tokenService   = tokenService;
     this.langCodes      = langCodes;
 }
Esempio n. 9
0
 public Handler(
     DataContext context,
     UserManager <AppUser> userManager,
     IAuthTokenService authTokenService)
 {
     _context          = context;
     _userManager      = userManager;
     _authTokenService = authTokenService;
 }
Esempio n. 10
0
 public SignInService(IApplicationUserRepository userRepo, IPasswordHasher <ApplicationUser> hasher,
                      IAuthTokenService authTokenServ, IDbPatchManager dbPatchMgr, IConfiguration configuration)
 {
     _userRepo      = userRepo;
     _hasher        = hasher;
     _appConfig     = configuration;
     _authTokenServ = authTokenServ;
     _dbPatchMgr    = dbPatchMgr;
 }
 public CustomerService(
     IAuthUserRepository <Customer> userRepo,
     IPasswordHasher passwordHasher,
     IOptions <AppSettings> appSettings,
     IClientService clientService,
     IAuthTokenService tokenService)
     : base(userRepo, passwordHasher, appSettings, clientService, tokenService)
 {
 }
Esempio n. 12
0
 public Handler(
     DataContext context,
     IEmailService emailService,
     IAuthTokenService authTokenService)
 {
     _context          = context;
     _emailService     = emailService;
     _authTokenService = authTokenService;
 }
Esempio n. 13
0
 public AuthTokenToUserService(
     IAuthLoginService _IAuthLoginService,
     IAuthTokenService _IAuthTokenService,
     ICacheProvider _cache)
 {
     this._IAuthLoginService = _IAuthLoginService;
     this._IAuthTokenService = _IAuthTokenService;
     this._cache             = _cache;
 }
Esempio n. 14
0
 public AuthService(IAuthTokenService tokenService,
                    IConfirmationEmailService emailConfirmationManager,
                    ICustomerManager customerManager,
                    ILogger <AuthService> logger)
 {
     this.tokenService             = tokenService;
     this.emailConfirmationManager = emailConfirmationManager;
     this.customerManager          = customerManager;
     this.logger = logger;
 }
Esempio n. 15
0
 public UsersController(
     IAuthService authService,
     IConfiguration configuration,
     IAuthTokenService authTokenService
     )
 {
     _authService      = authService;
     _configuration    = configuration;
     _authTokenService = authTokenService;
 }
Esempio n. 16
0
 public AccountService(UserManager <User> userManager,
                       SignInManager <User> signInManager,
                       IAuthTokenService authTokenService,
                       IMapper mapper)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _tokenService  = authTokenService;
     _mapper        = mapper;
 }
Esempio n. 17
0
        public void Init()
        {
            config = new ConfigurationBuilder()
                     .AddInMemoryCollection(new Dictionary <string, string> {
                { "TodoListApp:JWTSecret", Guid.NewGuid().ToString() }
            })
                     .Build();

            authService = new AuthTokenService(new MockUserService(), config);
        }
Esempio n. 18
0
 public PrinterApiController(UserManager <ApplicationUser> um,
                             IConsumableLicense icls,
                             IAuthTokenService iau,
                             IObjectModelService ioms)
 {
     _ConsumableLicService = icls;
     _AuthTokenService     = iau;
     _UserManager          = um;
     _ObjectModelService   = ioms;
 }
Esempio n. 19
0
 public BaseControllerServices(ILogger <BaseController> logger, IAuthTokenService <long> authService,
                               IMapper mapper, IEventTracker tracker, RateLimitConfig rateConfig, IDbServicesFactory factory)
 {
     this.logger      = logger;
     this.authService = authService;
     this.mapper      = mapper;
     this.tracker     = tracker;
     this.rateConfig  = rateConfig;
     this.dbFactory   = factory;
 }
Esempio n. 20
0
 public UserService(ILogger <UserService> logger, IHashService hashService, IAuthTokenService <long> authTokenService,
                    UserServiceConfig config, IDbServicesFactory factory, IViewTypeInfoService typeInfoService)
 {
     this.logger           = logger;
     this.hashService      = hashService;
     this.authTokenService = authTokenService;
     this.config           = config;
     this.dbFactory        = factory;
     this.typeInfoService  = typeInfoService;
     userTable             = typeInfoService.GetDatabaseForType <UserView>();
 }
Esempio n. 21
0
 public AuthApiServiceFromDB(
     IAuthLoginService _IAuthLoginService,
     IAuthTokenService _IAuthTokenService,
     IRepository <AuthScope> _AuthScopeRepository,
     ICacheProvider _cache)
 {
     this._IAuthLoginService   = _IAuthLoginService;
     this._IAuthTokenService   = _IAuthTokenService;
     this._AuthScopeRepository = _AuthScopeRepository;
     this._cache = _cache;
 }
Esempio n. 22
0
 public AccountService(IUserManager userManager,
                       SignInManager <User> signInManager,
                       IAuthTokenService authTokenService,
                       IEventBus eventBus,
                       IMapper mapper)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _tokenService  = authTokenService;
     _eventBus      = eventBus;
     _mapper        = mapper;
 }
Esempio n. 23
0
        public void Login_Works_When_Accepted()
        {
            authService = new MockTokenAuthService(MockAuthBehaviour.AcceptByDefault);
            service     = new LoginService(userService, authService);

            var loginAttempt = service.AuthenticateEmailAndPassword(new EmailLoginDto {
                Email    = TestData.user.Email,
                Password = ""
            });

            Assert.IsTrue(loginAttempt.Accepted);
        }
Esempio n. 24
0
 public SendPasswordResetHandler(IUserRepository userRepository,
                                 IAuthTokenService authTokenService,
                                 IMailService mailService,
                                 MailOptions mailOptions,
                                 LinkGenerator linkGenerator)
 {
     _userRepository   = userRepository;
     _authTokenService = authTokenService;
     _mailService      = mailService;
     _mailOptions      = mailOptions;
     _linkGenerator    = linkGenerator;
 }
Esempio n. 25
0
 public AuthenticatorEndpointHandler(
     HttpClient httpClient,
     IAuthTokenService authTokenService,
     IOptions <AuthorizationSettingsModel> appSettings,
     IMemoryCache memoryCache,
     ILogger <AuthenticatorEndpointHandler> logger)
 {
     _authTokenService      = authTokenService;
     _authorizationSettings = appSettings.Value;
     _httpClient            = httpClient;
     _cacheService          = memoryCache;
     _logger = logger;
 }
Esempio n. 26
0
 public AdminAccountController(
     ILoginService <AdminEntity> login,
     IAuthTokenService authTokenService,
     IConfiguration config,
     IHttpClientFactory factory,
     OAuthConfig oAuthConfig)
 {
     this._login           = login;
     this.authTokenService = authTokenService;
     this.config           = config;
     this.oAuthConfig      = oAuthConfig;
     this.httpClient       = factory.CreateClient("my_admin_oauth");
 }
Esempio n. 27
0
        public void Login_Fails_When_Rejected()
        {
            userService = new MockUserService(false);
            authService = new MockTokenAuthService(MockAuthBehaviour.RejectByDefault);
            service     = new LoginService(userService, authService);

            var loginAttempt = service.AuthenticateEmailAndPassword(new EmailLoginDto
            {
                Email    = TestData.user.Email,
                Password = ""
            });

            Assert.IsFalse(loginAttempt.Accepted);
        }
Esempio n. 28
0
 public AccountController(
     IAuthLoginService _IAuthLoginService,
     IAuthTokenService _IAuthTokenService,
     LoginStatus logincontext,
     IEFRepository <AuthScope> _AuthScopeRepo,
     IEFRepository <LoginErrorLogEntity> _LogErrorRepo,
     IAuthDataProvider _IValidationDataProvider,
     ICacheProvider _cache)
 {
     this._IAuthLoginService       = _IAuthLoginService;
     this._IAuthTokenService       = _IAuthTokenService;
     this._LoginStatus             = logincontext;
     this._AuthScopeRepo           = _AuthScopeRepo;
     this._LogErrorRepo            = _LogErrorRepo;
     this._IValidationDataProvider = _IValidationDataProvider;
     this._cache = _cache;
 }
Esempio n. 29
0
 public AccountController(
     IAuthLoginService _IAuthLoginService,
     IUserService user,
     ILoginLogService loginlog,
     LoginStatus logincontext,
     IRepository <AuthScope> _AuthScopeRepository,
     IAuthTokenService _IAuthTokenService,
     IValidationDataProvider _IValidationDataProvider)
 {
     this._IAuthLoginService       = _IAuthLoginService;
     this._IUserService            = user;
     this._LoginErrorLogBll        = loginlog;
     this._LoginStatus             = logincontext;
     this._AuthScopeRepository     = _AuthScopeRepository;
     this._IAuthTokenService       = _IAuthTokenService;
     this._IValidationDataProvider = _IValidationDataProvider;
 }
Esempio n. 30
0
        public ConnectController(
            IAuthDataProvider _IValidationDataProvider,
            IAuthLoginService _IAuthLoginService,
            IAuthTokenService _IAuthTokenService,
            IAuthScopeService _IAuthScopeService,
            IAuthClientService _IAuthClientService,
            IRepository <AuthScope> _AuthScopeRepository,
            IRepository <AuthClient> _AuthClientRepository)
        {
            this._IValidationDataProvider = _IValidationDataProvider;
            this._IAuthLoginService       = _IAuthLoginService;

            this._IAuthTokenService  = _IAuthTokenService;
            this._IAuthScopeService  = _IAuthScopeService;
            this._IAuthClientService = _IAuthClientService;

            this._AuthScopeRepository  = _AuthScopeRepository;
            this._AuthClientRepository = _AuthClientRepository;
        }
Esempio n. 31
0
 public Crawler(IAuthTokenService authTokenService, IMessageService messageService)
 {
     _authTokenService = authTokenService;
     _messageService = messageService;
 }
 public AuthController()
 {
     _authTokenService = DependencyManager.Current.GetInstance<IAuthTokenService>();
 }