diff --git a/conf/default_remote_config.json b/conf/default_remote_config.json index c7af5f5..7e479fe 100644 --- a/conf/default_remote_config.json +++ b/conf/default_remote_config.json @@ -8,6 +8,5 @@ "password": "{{ msp_pgsql_password }}" }, "logLevel": "debug", - "secretKey": "secret", "expireSec": 3600 } \ No newline at end of file diff --git a/conf/remote.go b/conf/remote.go index 05558ec..24a508b 100644 --- a/conf/remote.go +++ b/conf/remote.go @@ -18,7 +18,6 @@ func init() { type Remote struct { Database dbx.Config - SecretKey string `valid:"required~Required" schema:"JWT secret"` ExpireSec int `valid:"required" schema:"Время жизни токена в секундах,in seconds"` UiDesign UIDesign `schema:"Кастомизация интерфейса"` SudirAuth *SudirAuth `schema:"СУДИР авторизация"` diff --git a/tests/auth_test.go b/tests/auth_test.go index c59f574..537c6fc 100644 --- a/tests/auth_test.go +++ b/tests/auth_test.go @@ -49,7 +49,6 @@ func (s *AuthTestSuite) SetupTest() { Host: host, RedirectURI: "http://localhost", }, - SecretKey: "admin", ExpireSec: 3600, } diff --git a/tests/customization_test.go b/tests/customization_test.go index 3c0d960..5aaf908 100644 --- a/tests/customization_test.go +++ b/tests/customization_test.go @@ -35,7 +35,6 @@ func (s *CustomizationTestSuite) SetupTest() { Name: "test", PrimaryColor: "#ff4d4f", }, - SecretKey: "admin", ExpireSec: 0, } diff --git a/tests/user_test.go b/tests/user_test.go index c34c073..617e28d 100644 --- a/tests/user_test.go +++ b/tests/user_test.go @@ -45,7 +45,6 @@ func (s *UserTestSuite) SetupTest() { s.httpCli = httpcli.New() cfg := conf.Remote{ - SecretKey: "secret", ExpireSec: 0, } locator := assembly.NewLocator(testInstance.Logger(), s.httpCli, s.db)