Пример #1
0
 public AccountController(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events,
     IdentityServerTools tools,
     //ConfigurationDbContext configurationDbContext,
     IConfiguration configuration,
     INotificationHelper notificationHelper,
     UserProfileService userProfileService,
     OtpKey otpKey,
     TssIdentityDbContext tssIdentityDbContext)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _interaction    = interaction;
     _clientStore    = clientStore;
     _schemeProvider = schemeProvider;
     _events         = events;
     _tools          = tools;
     //_configurationDbContext = configurationDbContext;
     _configurationRoot    = (IConfigurationRoot)configuration;
     _notificationHelper   = notificationHelper;
     _userProfileService   = userProfileService;
     _otpKey               = otpKey;
     _tssIdentityDbContext = tssIdentityDbContext;
 }
Пример #2
0
        //private readonly ConfigurationDbContext _configDbContext;

        public UserProfileService(TssIdentityDbContext tssDbContext)//, ConfigurationDbContext configurationDbContext)
        {
            _tssDbContext = tssDbContext;
            //_configDbContext = configurationDbContext;
        }
Пример #3
0
 public ResourceOwnerPasswordValidator(TssIdentityDbContext identityServerDbContext, OtpKey otpKey)
 {
     _tssDbContext = identityServerDbContext;
     _otpKey       = otpKey;
 }