From 0b15be553fd2dc1bc92957b6db7c6f3ada41e965 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Thu, 19 Oct 2023 08:48:35 +0200 Subject: [PATCH] fix token storage config for web --- changelog/unreleased/fix-token-storage-config-web.md | 6 ++++++ services/web/pkg/config/options.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-token-storage-config-web.md diff --git a/changelog/unreleased/fix-token-storage-config-web.md b/changelog/unreleased/fix-token-storage-config-web.md new file mode 100644 index 00000000000..ceb178da330 --- /dev/null +++ b/changelog/unreleased/fix-token-storage-config-web.md @@ -0,0 +1,6 @@ +Bugfix: Token storage config fixed + +The token storage config in the config.json for web was missing when it was set to `false`. + +https://github.com/owncloud/ocis/pull/7528 +https://github.com/owncloud/ocis/issues/7462 diff --git a/services/web/pkg/config/options.go b/services/web/pkg/config/options.go index c79faaaa2a5..e988ce74b64 100644 --- a/services/web/pkg/config/options.go +++ b/services/web/pkg/config/options.go @@ -24,7 +24,7 @@ type Options struct { ImprintURL string `json:"imprintUrl,omitempty" yaml:"imprintUrl" env:"WEB_OPTION_IMPRINT_URL" desc:"Specifies the target URL for the imprint link valid for the ocis instance in the account menu."` PrivacyURL string `json:"privacyUrl,omitempty" yaml:"privacyUrl" env:"WEB_OPTION_PRIVACY_URL" desc:"Specifies the target URL for the privacy link valid for the ocis instance in the account menu."` AccessDeniedHelpURL string `json:"accessDeniedHelpUrl,omitempty" yaml:"accessDeniedHelpUrl" env:"WEB_OPTION_ACCESS_DENIED_HELP_URL" desc:"Specifies the target URL valid for the ocis instance for the generic logged out / access denied page."` - TokenStorageLocal bool `json:"tokenStorageLocal,omitempty" yaml:"tokenStorageLocal" env:"WEB_OPTION_TOKEN_STORAGE_LOCAL" desc:"Specifies whether the access token will be stored in the local storage when set to 'true' or in the session storage when set to 'false''. If stored in the local storage, login state will be persisted across multiple browser tabs, means no additional logins are required. Defaults to 'true'."` + TokenStorageLocal bool `json:"tokenStorageLocal" yaml:"tokenStorageLocal" env:"WEB_OPTION_TOKEN_STORAGE_LOCAL" desc:"Specifies whether the access token will be stored in the local storage when set to 'true' or in the session storage when set to 'false''. If stored in the local storage, login state will be persisted across multiple browser tabs, means no additional logins are required. Defaults to 'true'."` DisabledExtensions []string `json:"disabledExtensions,omitempty" yaml:"disabledExtensions" env:"WEB_OPTION_DISABLED_EXTENSIONS" desc:"Allows disabling specific Web extensions via their id."` }