From e1148c649391cbe0c0e136c2857ec9f4ebbc4a67 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 20 Sep 2023 10:45:11 +0200 Subject: [PATCH] Add web config var LoginURL (#7317) * Add web config var LoginURL * Add changelog item --- changelog/unreleased/enhancement-add-login-url-config.md | 5 +++++ services/web/pkg/config/options.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog/unreleased/enhancement-add-login-url-config.md diff --git a/changelog/unreleased/enhancement-add-login-url-config.md b/changelog/unreleased/enhancement-add-login-url-config.md new file mode 100644 index 0000000000..59b7a98aa8 --- /dev/null +++ b/changelog/unreleased/enhancement-add-login-url-config.md @@ -0,0 +1,5 @@ +Enhancement: Add login URL config + +Introduce a config to set the web login URL via `WEB_OPTION_LOGIN_URL`. + +https://github.com/owncloud/ocis/pull/7317 diff --git a/services/web/pkg/config/options.go b/services/web/pkg/config/options.go index 160fe94bda..e5d35e7981 100644 --- a/services/web/pkg/config/options.go +++ b/services/web/pkg/config/options.go @@ -19,6 +19,7 @@ type Options struct { Editor *Editor `json:"editor,omitempty" yaml:"editor"` ContextHelpersReadMore bool `json:"contextHelpersReadMore,omitempty" yaml:"contextHelpersReadMore" env:"WEB_OPTION_CONTEXTHELPERS_READ_MORE" desc:"Specifies whether the 'Read more' link should be displayed or not."` LogoutURL string `json:"logoutUrl,omitempty" yaml:"logoutUrl" env:"WEB_OPTION_LOGOUT_URL" desc:"Adds a link to the user's profile page to point him to an external page, where he can manage his session and devices. This is helpful when an external IdP is used. This option is disabled by default."` + LoginURL string `json:"loginUrl,omitempty" yaml:"loginUrl" env:"WEB_OPTION_LOGIN_URL" desc:"Specifies the target URL to the login page. This is helpful when an external IdP is used. This option is disabled by default. Example URL like: 'https://www.myidp.com/login'."` OpenLinksWithDefaultApp bool `json:"openLinksWithDefaultApp,omitempty" yaml:"openLinksWithDefaultApp" env:"WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP" desc:"Specifies whether single file link shares should be opened with the default app or not. If not opened by the default app, the Web UI just displays the file details. Defaults to 'true'."` 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."`