Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public UserProfileService(IUserDbContextFactory contextFactory)
 {
     this.contextFactory = contextFactory;
 }
Esempio n. 3
0
 public UserRegisteredHandler(IUserDbContextFactory contextFactory, ILogger <UserRegisteredHandler> logger)
 {
     this.logger         = logger;
     this.contextFactory = contextFactory;
 }
Esempio n. 4
0
 public UserService(IUserDbContextFactory contextFactory, ILogger logger)
 {
     this.contextFactory = contextFactory;
     this.logger         = logger;
 }
Esempio n. 5
0
 public Authenticator(IUserDbContextFactory dbFactory, IHashProvider hashProvider)
 {
     this.dbFactory    = dbFactory;
     this.hashProvider = hashProvider;
 }