public void Setup()
 {
     itsLogger     = new TSLogger();
     encryptSvc    = new EncryptionService();
     configuration = TestHelper.GetIConfigurationRoot(TestContext.CurrentContext.TestDirectory);
     jWTToken      = new JWTToken(itsLogger, encryptSvc, configuration);
 }
Ejemplo n.º 2
0
 public JWTToken(ITSLogger log, IEncryptionService encryptSvc, IConfiguration configuration)
 {
     EncryptSvc = encryptSvc;
     config     = configuration;
     SecretKey  = config["Secretkey"];
     algorithm  = config.GetValue <string>("jwt:header:alg");
 }
 public RevocationController(IConfiguration configuration, IEncryptionService encryption, ITokenService tokenService, ITokenService refrshService, ITSLogger tSLogger, ITokenServiceDbContext tokenServiceDbContext)
 {
     _configuration         = configuration;
     _encryptionService     = encryption;
     _tokenService          = tokenService;
     _refreshService        = refrshService;
     _tSLogger              = tSLogger;
     _tokenServiceDbContext = tokenServiceDbContext;
 }
Ejemplo n.º 4
0
 public RegisterClient(ITokenService refreshtoken, IConfiguration configuration, ITSLogger log, ITokenService jWTTokenService, ITokenServiceDbContext oauth, IEncryptionService encryptSvc) : base(refreshtoken, configuration, log, jWTTokenService, oauth, encryptSvc)
 {
 }
Ejemplo n.º 5
0
 public AuthenticateRefresh(ITokenService refreshtoken, IConfiguration configuration, ITSLogger log, ITokenService jWTTokenService, ITokenServiceDbContext oauth, IEncryptionService encryptSvc) : base(refreshtoken, configuration, log, jWTTokenService, oauth, encryptSvc)
 {
 }