diff --git a/changelog/unreleased/enhancement-add-token-storage-local-env-variable b/changelog/unreleased/enhancement-add-token-storage-local-env-variable new file mode 100644 index 000000000..a5bae3075 --- /dev/null +++ b/changelog/unreleased/enhancement-add-token-storage-local-env-variable @@ -0,0 +1,7 @@ +Enhancement: add WEB_OPTION_TOKEN_STORAGE_LOCAL env variable + +We introduced the feature to store the access token in the local storage, this feature is disabled by default, +but can be enabled by setting the env `WEB_OPTION_TOKEN_STORAGE_LOCAL` to `true`. + +https://github.com/owncloud/ocis/pull/6760 + diff --git a/services/web/pkg/config/options.go b/services/web/pkg/config/options.go index 5c7d8bef2..c6ff21ddc 100644 --- a/services/web/pkg/config/options.go +++ b/services/web/pkg/config/options.go @@ -23,6 +23,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 'false'."` } // AccountEditLink are the AccountEditLink options