Make DisableAuthentication a Dev flag
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ func (api *Router) Routes() http.Handler {
|
||||
r.Use(checkRequiredParameters)
|
||||
|
||||
// Add validation middleware if not disabled
|
||||
if !conf.Sonic.DisableAuthentication {
|
||||
if !conf.Sonic.DevDisableAuthentication {
|
||||
r.Use(authenticate)
|
||||
// TODO Validate version
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ var _ = Describe("Middlewares", func() {
|
||||
BeforeEach(func() {
|
||||
conf.Sonic.User = "admin"
|
||||
conf.Sonic.Password = "wordpass"
|
||||
conf.Sonic.DisableAuthentication = false
|
||||
conf.Sonic.DevDisableAuthentication = false
|
||||
})
|
||||
|
||||
Context("Plaintext password", func() {
|
||||
|
||||
Reference in New Issue
Block a user