public void Setup() { itsLogger = new TSLogger(); encryptSvc = new EncryptionService(); configuration = TestHelper.GetIConfigurationRoot(TestContext.CurrentContext.TestDirectory); jWTToken = new JWTToken(itsLogger, encryptSvc, configuration); }
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; }
public RegisterClient(ITokenService refreshtoken, IConfiguration configuration, ITSLogger log, ITokenService jWTTokenService, ITokenServiceDbContext oauth, IEncryptionService encryptSvc) : base(refreshtoken, configuration, log, jWTTokenService, oauth, encryptSvc) { }
public AuthenticateRefresh(ITokenService refreshtoken, IConfiguration configuration, ITSLogger log, ITokenService jWTTokenService, ITokenServiceDbContext oauth, IEncryptionService encryptSvc) : base(refreshtoken, configuration, log, jWTTokenService, oauth, encryptSvc) { }