MSP-1070 remove secret key
This commit is contained in:
1 parent
850abfd93c
commit
b79ed21c10
5 files changed
-5
No files matched your search
@@ -8,6 +8,5 @@
|
|||||||
"password": "{{ msp_pgsql_password }}"
|
"password": "{{ msp_pgsql_password }}"
|
||||||
},
|
},
|
||||||
"logLevel": "debug",
|
"logLevel": "debug",
|
||||||
"secretKey": "secret",
|
|
||||||
"expireSec": 3600
|
"expireSec": 3600
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,6 @@ func init() {
|
|||||||
|
|
||||||
type Remote struct {
|
type Remote struct {
|
||||||
Database dbx.Config
|
Database dbx.Config
|
||||||
SecretKey string `valid:"required~Required" schema:"JWT secret"`
|
|
||||||
ExpireSec int `valid:"required" schema:"Время жизни токена в секундах,in seconds"`
|
ExpireSec int `valid:"required" schema:"Время жизни токена в секундах,in seconds"`
|
||||||
UiDesign UIDesign `schema:"Кастомизация интерфейса"`
|
UiDesign UIDesign `schema:"Кастомизация интерфейса"`
|
||||||
SudirAuth *SudirAuth `schema:"СУДИР авторизация"`
|
SudirAuth *SudirAuth `schema:"СУДИР авторизация"`
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ func (s *AuthTestSuite) SetupTest() {
|
|||||||
Host: host,
|
Host: host,
|
||||||
RedirectURI: "http://localhost",
|
RedirectURI: "http://localhost",
|
||||||
},
|
},
|
||||||
SecretKey: "admin",
|
|
||||||
ExpireSec: 3600,
|
ExpireSec: 3600,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ func (s *CustomizationTestSuite) SetupTest() {
|
|||||||
Name: "test",
|
Name: "test",
|
||||||
PrimaryColor: "#ff4d4f",
|
PrimaryColor: "#ff4d4f",
|
||||||
},
|
},
|
||||||
SecretKey: "admin",
|
|
||||||
ExpireSec: 0,
|
ExpireSec: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ func (s *UserTestSuite) SetupTest() {
|
|||||||
s.httpCli = httpcli.New()
|
s.httpCli = httpcli.New()
|
||||||
|
|
||||||
cfg := conf.Remote{
|
cfg := conf.Remote{
|
||||||
SecretKey: "secret",
|
|
||||||
ExpireSec: 0,
|
ExpireSec: 0,
|
||||||
}
|
}
|
||||||
locator := assembly.NewLocator(testInstance.Logger(), s.httpCli, s.db)
|
locator := assembly.NewLocator(testInstance.Logger(), s.httpCli, s.db)
|
||||||
|
|||||||
Reference in new issue
Block a user