Ejemplo n.º 1
0
 public JwtController(ILoginService loginService, IApiKeyValiationService apikeyValidService, ITokenService tokenService)
 {
     this.loginService       = loginService;
     this.apikeyValidService = apikeyValidService;
     this.tokenService       = tokenService;
     this.logger             = Log.Logger;
 }
        public AuthServiceTest()
        {
            var appsetting = Options.Create(new AppSettings()
            {
                JwtIssuer     = "https://apis.donga.ac.kr/auth",
                JwtExpireMins = 15,
                JwtKey        = "ECOMMERCE_SUPER_SECRET_KEY"
            });

            loginService        = new TestLoginService();
            apiUserValidService = new TestApiKeyValiationService();
            repo         = new BaseRepository(new SqliteRepositoryString(new BaseORMHelper()));
            tokenService = new BaseTokenService(appsetting);
        }