コード例 #1
0
 public BlacklistingJwtMiddleware(DataBaseELContext userContext, IConfiguration configuration)
 {
     _userContext      = userContext;
     _configuration    = configuration;
     _tokenName        = "Authorization";
     _gracePeriod      = int.Parse(_configuration["gracePeriod"]);
     _applyGracePeriod = _configuration["applyGracePeriod"].Trim().ToLower();
 }
コード例 #2
0
        public UserWebApiUnitTest()
        {
            DbContextOptions <DataBaseELContext>        dbOptions;
            DbContextOptionsBuilder <DataBaseELContext> dboBuilder = new DbContextOptionsBuilder <DataBaseELContext>();

            dboBuilder.UseInMemoryDatabase("WebapiTest");
            dbOptions = dboBuilder.Options;

            _dataBaseELContext = new DataBaseELContext(dbOptions);
            _jwtService        = new JwtService();

            _userController = new UserController(_dataBaseELContext, _jwtService);
        }
コード例 #3
0
 public AuthController(DataBaseELContext dataBaseELContext, IJwtService jwtService) : base(dataBaseELContext, jwtService)
 {
 }
コード例 #4
0
 public BaseController(DataBaseELContext dataBaseELContext, IJwtService jwtService)
 {
     _dataBaseELContext = dataBaseELContext;
     _jwtService        = jwtService;
     this.DefaultAdd();
 }
コード例 #5
0
 public EagerLoadingController(DataBaseELContext dataBaseELContext, IJwtService jwtService) : base(dataBaseELContext, jwtService)
 {
 }