Beispiel #1
0
        public AccountController(
            IIdentityServerInteractionService interaction,
            IClientStore clientStore,
            IAuthenticationSchemeProvider schemeProvider,
            IEventService events,
            LearnIs4DbContext dbContext,
            IBaseEncryptionService baseEncryptionService)
        {
            // if the TestUserStore is not in DI, then we'll just use the global users collection
            // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity)
            _dbContext = dbContext;

            _interaction       = interaction;
            _clientStore       = clientStore;
            _schemeProvider    = schemeProvider;
            _events            = events;
            _encryptionService = baseEncryptionService;
        }
Beispiel #2
0
 public ProfileService(DbContext dbContext, IHttpContextAccessor httpContextAccessor)
 {
     _dbContext   = (LearnIs4DbContext)dbContext;
     _httpContext = httpContextAccessor.HttpContext;
 }