mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-10 07:49:08 -05:00
Merge pull request #4601 from wkloucek/remove-default-insecure
change the default value for PROXY_OIDC_INSECURE to false
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Bugfix: Change the default value for PROXY_OIDC_INSECURE to false
|
||||
|
||||
We've changed the default value for PROXY_OIDC_INSECURE to `false`.
|
||||
Previously the default values was `true` which is not acceptable since default values need to be secure.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/4601
|
||||
@@ -28,7 +28,12 @@ type InsecureService struct {
|
||||
}
|
||||
|
||||
type InsecureProxyService struct {
|
||||
InsecureBackends bool `yaml:"insecure_backends"`
|
||||
OIDC InsecureProxyOIDC `yaml:"oidc"`
|
||||
InsecureBackends bool `yaml:"insecure_backends"`
|
||||
}
|
||||
|
||||
type InsecureProxyOIDC struct {
|
||||
Insecure bool `yaml:"insecure"`
|
||||
}
|
||||
|
||||
type LdapSettings struct {
|
||||
@@ -282,6 +287,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
|
||||
}
|
||||
cfg.Proxy = InsecureProxyService{
|
||||
InsecureBackends: true,
|
||||
OIDC: InsecureProxyOIDC{
|
||||
Insecure: true,
|
||||
},
|
||||
}
|
||||
|
||||
cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true
|
||||
|
||||
@@ -33,9 +33,8 @@ func DefaultConfig() *config.Config {
|
||||
Name: "proxy",
|
||||
},
|
||||
OIDC: config.OIDC{
|
||||
Issuer: "https://localhost:9200",
|
||||
Insecure: true,
|
||||
//Insecure: true,
|
||||
Issuer: "https://localhost:9200",
|
||||
|
||||
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
|
||||
UserinfoCache: config.UserinfoCache{
|
||||
Size: 1024,
|
||||
|
||||
Reference in New Issue
Block a user