Merge pull request #10307 from owncloud/secure-ocm-by-default

use secure config defaults for OCM
This commit is contained in:
Jörn Friedrich Dreyer
2024-10-16 17:11:39 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
Bugfix: use secure config defaults for OCM
https://github.com/owncloud/ocis/pull/10307

View File

@@ -109,7 +109,8 @@ func DefaultConfig() *config.Config {
OCMProviderAuthorizerDriver: "json",
OCMProviderAuthorizerDrivers: config.OCMProviderAuthorizerDrivers{
JSON: config.OCMProviderAuthorizerJSONDriver{
Providers: filepath.Join(defaults.BaseConfigPath(), "ocmproviders.json"),
Providers: filepath.Join(defaults.BaseConfigPath(), "ocmproviders.json"),
VerifyRequestHostname: true,
},
},
OCMShareProvider: config.OCMShareProvider{