public HttpService( IAuthTokenService authTokenService, IOptions <RCLSDKOptions> options) { _authTokenService = authTokenService; _options = options; }
public SignInHandler(IUserRepository userRepository, IPasswordHasher <User> passwordHasher, IAuthTokenService authTokenService, IAuthTokensCache tokensCache) { _userRepository = userRepository; _passwordHasher = passwordHasher; _authTokenService = authTokenService; _tokensCache = tokensCache; }
public LoginSubMod( IInputEntryService entryService, IAuthTokenService authTokenService) : base(entryService) { _authTokenService = authTokenService; }
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; }
public AuthService(UserManager <IdentityUser> userManager, IMapper mapper, IAuthTokenService tokenService, ILogger <AuthService> logger) { _userManager = userManager; _mapper = mapper; _tokenService = tokenService; _logger = logger; }
public AccountController( ILoginService <AdminEntity> login, IAuthTokenService authTokenService) { this._login = login; this.authTokenService = authTokenService; }
public AccountController(IRepository <User> userRepository, LangCodes langCodes, IProfilePicRepository picRepository, IAuthTokenService <JwtBody> tokenService) { this.userRepository = userRepository; this.picRepository = picRepository; this.tokenService = tokenService; this.langCodes = langCodes; }
public Handler( DataContext context, UserManager <AppUser> userManager, IAuthTokenService authTokenService) { _context = context; _userManager = userManager; _authTokenService = authTokenService; }
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) { }
public Handler( DataContext context, IEmailService emailService, IAuthTokenService authTokenService) { _context = context; _emailService = emailService; _authTokenService = authTokenService; }
public AuthTokenToUserService( IAuthLoginService _IAuthLoginService, IAuthTokenService _IAuthTokenService, ICacheProvider _cache) { this._IAuthLoginService = _IAuthLoginService; this._IAuthTokenService = _IAuthTokenService; this._cache = _cache; }
public AuthService(IAuthTokenService tokenService, IConfirmationEmailService emailConfirmationManager, ICustomerManager customerManager, ILogger <AuthService> logger) { this.tokenService = tokenService; this.emailConfirmationManager = emailConfirmationManager; this.customerManager = customerManager; this.logger = logger; }
public UsersController( IAuthService authService, IConfiguration configuration, IAuthTokenService authTokenService ) { _authService = authService; _configuration = configuration; _authTokenService = authTokenService; }
public AccountService(UserManager <User> userManager, SignInManager <User> signInManager, IAuthTokenService authTokenService, IMapper mapper) { _userManager = userManager; _signInManager = signInManager; _tokenService = authTokenService; _mapper = mapper; }
public void Init() { config = new ConfigurationBuilder() .AddInMemoryCollection(new Dictionary <string, string> { { "TodoListApp:JWTSecret", Guid.NewGuid().ToString() } }) .Build(); authService = new AuthTokenService(new MockUserService(), config); }
public PrinterApiController(UserManager <ApplicationUser> um, IConsumableLicense icls, IAuthTokenService iau, IObjectModelService ioms) { _ConsumableLicService = icls; _AuthTokenService = iau; _UserManager = um; _ObjectModelService = ioms; }
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; }
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>(); }
public AuthApiServiceFromDB( IAuthLoginService _IAuthLoginService, IAuthTokenService _IAuthTokenService, IRepository <AuthScope> _AuthScopeRepository, ICacheProvider _cache) { this._IAuthLoginService = _IAuthLoginService; this._IAuthTokenService = _IAuthTokenService; this._AuthScopeRepository = _AuthScopeRepository; this._cache = _cache; }
public AccountService(IUserManager userManager, SignInManager <User> signInManager, IAuthTokenService authTokenService, IEventBus eventBus, IMapper mapper) { _userManager = userManager; _signInManager = signInManager; _tokenService = authTokenService; _eventBus = eventBus; _mapper = mapper; }
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); }
public SendPasswordResetHandler(IUserRepository userRepository, IAuthTokenService authTokenService, IMailService mailService, MailOptions mailOptions, LinkGenerator linkGenerator) { _userRepository = userRepository; _authTokenService = authTokenService; _mailService = mailService; _mailOptions = mailOptions; _linkGenerator = linkGenerator; }
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; }
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"); }
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); }
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; }
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; }
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; }
public Crawler(IAuthTokenService authTokenService, IMessageService messageService) { _authTokenService = authTokenService; _messageService = messageService; }
public AuthController() { _authTokenService = DependencyManager.Current.GetInstance<IAuthTokenService>(); }