fix basic auth configuration

This commit is contained in:
David Christofas
2021-11-02 15:04:13 +01:00
parent 424a2e3f09
commit 890fbd53b6
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Fix basic auth config
Users could authenticate using basic auth even though `PROXY_ENABLE_BASIC_AUTH` was set to false.
https://github.com/owncloud/ocis/pull/2719
https://github.com/owncloud/ocis/issues/2466

View File

@@ -162,6 +162,7 @@ func frontendConfigFromStruct(c *cli.Context, cfg *config.Config, filesCfg map[s
},
"auth": map[string]interface{}{
"credentials_by_user_agent": cfg.Reva.Frontend.Middleware.Auth.CredentialsByUserAgent,
"credential_chain": []string{"bearer"},
},
},
// TODO build services dynamically