Exemple #1
0
 public JweBlackListService(
     IDataBaseFactory dataBaseFactory,
     IOptions <JweOptions> jweOptions)
 {
     this.dataBaseFactory = dataBaseFactory;
     this.jweOptions      = jweOptions.Value;
 }
Exemple #2
0
 public JweService(
     DataBaseConnection db,
     SunUserManager userManager,
     IRolesCache rolesCache,
     ICryptService cryptService,
     IOptions <JweOptions> jwtOptions,
     ILoggerFactory loggerFactory) : base(db)
 {
     this.userManager  = userManager;
     this.cryptService = cryptService;
     this.jweOptions   = jwtOptions.Value;
     logger            = loggerFactory.CreateLogger <AccountController>();
     this.rolesCache   = rolesCache;
 }
Exemple #3
0
 public AccountManager(
     SunUserManager userManager,
     IEmailSenderService emailSenderService,
     DataBaseConnection db,
     ICryptService cryptService,
     IOptions <GlobalOptions> globalOptions,
     IOptions <JweOptions> jwtOptions) : base(db)
 {
     this.jweOptions         = jwtOptions.Value;
     this.userManager        = userManager;
     this.globalOptions      = globalOptions.Value;
     this.emailSenderService = emailSenderService;
     this.cryptService       = cryptService;
 }
Exemple #4
0
 public SunJweHandler(
     IOptionsMonitor <SunJwtOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     IRolesCache rolesCache,
     IOptions <JweOptions> jweOptions,
     JweService jweService,
     JweBlackListService jweBlackListService,
     SunUserManager userManager) : base(options, logger, encoder, clock)
 {
     this.rolesCache          = rolesCache;
     this.jweOptions          = jweOptions.Value;
     this.jweService          = jweService;
     this.userManager         = userManager;
     this.jweBlackListService = jweBlackListService;
 }