mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-14 04:17:36 -04:00
Merge pull request #9692 from owncloud/fix-web-delegatedauthentication-type
use bool type for web embed delegatedAuthentication
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Bugfix: use bool type for web embed delegatedAuthentication
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9692
|
||||
@@ -193,7 +193,7 @@ func Sanitize(cfg *config.Config) {
|
||||
if cfg.Web.Config.Options.Embed.Enabled == "" &&
|
||||
cfg.Web.Config.Options.Embed.Target == "" &&
|
||||
cfg.Web.Config.Options.Embed.MessagesOrigin == "" &&
|
||||
cfg.Web.Config.Options.Embed.DelegateAuthentication == "" &&
|
||||
cfg.Web.Config.Options.Embed.DelegateAuthentication &&
|
||||
cfg.Web.Config.Options.Embed.DelegateAuthenticationOrigin == "" {
|
||||
cfg.Web.Config.Options.Embed = nil
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ type Embed struct {
|
||||
Enabled string `json:"enabled,omitempty" yaml:"enabled" env:"WEB_OPTION_EMBED_ENABLED" desc:"Defines whether Web should be running in 'embed' mode. Setting this to 'true' will enable a stripped down version of Web with reduced functionality used to integrate Web into other applications like via iFrame. Setting it to 'false' or not setting it (default) will run Web as usual with all functionality enabled. See the text description for more details." introductionVersion:"5.0"`
|
||||
Target string `json:"target,omitempty" yaml:"target" env:"WEB_OPTION_EMBED_TARGET" desc:"Defines how Web is being integrated when running in 'embed' mode. Currently, the only supported options are '' (empty) and 'location'. With '' which is the default, Web will run regular as defined via the 'embed.enabled' config option. With 'location', Web will run embedded as location picker. Resource selection will be disabled and the selected resources array always includes the current folder as the only item. See the text description for more details." introductionVersion:"5.0"`
|
||||
MessagesOrigin string `json:"messagesOrigin,omitempty" yaml:"messagesOrigin" env:"WEB_OPTION_EMBED_MESSAGES_ORIGIN" desc:"Defines a URL under which Web can be integrated via iFrame in 'embed' mode. Note that setting this is mandatory when running Web in 'embed' mode. Use '*' as value to allow running the iFrame under any URL, although this is not recommended for security reasons. See the text description for more details." introductionVersion:"5.0"`
|
||||
DelegateAuthentication string `json:"delegateAuthentication,omitempty" yaml:"delegateAuthentication" env:"WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION" desc:"Defines whether Web should require authentication to be done by the parent application when running in 'embed' mode. If set to 'true' Web will not try to authenticate the user on its own but will require an access token coming from the parent application. Defaults to being unset." introductionVersion:"5.0"`
|
||||
DelegateAuthentication bool `json:"delegateAuthentication,omitempty" yaml:"delegateAuthentication" env:"WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION" desc:"Defines whether Web should require authentication to be done by the parent application when running in 'embed' mode. If set to 'true' Web will not try to authenticate the user on its own but will require an access token coming from the parent application. Defaults to being unset." introductionVersion:"5.0"`
|
||||
DelegateAuthenticationOrigin string `json:"delegateAuthenticationOrigin,omitempty" yaml:"delegateAuthenticationOrigin" env:"WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION_ORIGIN" desc:"Defines the host to validate the message event origin against when running Web in 'embed' mode with delegated authentication. Defaults to event message origin validation being omitted, which is only recommended for development setups." introductionVersion:"5.0"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user