public AccountController(IAuthenticator authenticator, IIdentityServerInteractionService idsService, IConfigurationRoot config, ILogger <AccountController> logger, IClientStore clientStore, IHttpContextAccessor httpContextAccessor, IAuthenticationSchemeProvider schemeProvider, IEventService events, IUserDbContextFactory contextFactory) //, TestUserStore users = null) { // if the TestUserStore is not in DI, then we'll just use the global users collection //_users = users ?? new TestUserStore(TestUsers.Users); // TODO: this needs to be injected and needs to have an interface { this.userService = new UserService(contextFactory, logger); _events = events; this.authenticator = authenticator; this.idsService = idsService; this.config = config; this.logger = logger; _account = new AccountService(idsService, httpContextAccessor, schemeProvider, clientStore); }
public UserProfileService(IUserDbContextFactory contextFactory) { this.contextFactory = contextFactory; }
public UserRegisteredHandler(IUserDbContextFactory contextFactory, ILogger <UserRegisteredHandler> logger) { this.logger = logger; this.contextFactory = contextFactory; }
public UserService(IUserDbContextFactory contextFactory, ILogger logger) { this.contextFactory = contextFactory; this.logger = logger; }
public Authenticator(IUserDbContextFactory dbFactory, IHashProvider hashProvider) { this.dbFactory = dbFactory; this.hashProvider = hashProvider; }