allow to configure applications for web

This commit is contained in:
Willy Kloucek
2022-09-14 10:00:56 +02:00
parent 7faca11562
commit 1caffa3bb8
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Enhancement: Allow to configure applications in Web
We've added the possibility to configure applications in the Web configuration.
https://github.com/owncloud/ocis/pull/4578

View File

@@ -36,6 +36,7 @@ type WebConfig struct {
Theme string `json:"theme,omitempty" yaml:"-"`
OpenIDConnect OIDC `json:"openIdConnect,omitempty" yaml:"oidc"`
Apps []string `json:"apps" yaml:"apps"`
Applications []Application `json:"applications,omitempty" yaml:"applications"`
ExternalApps []ExternalApp `json:"external_apps,omitempty" yaml:"external_apps"`
Options map[string]interface{} `json:"options,omitempty" yaml:"options"`
}
@@ -49,6 +50,15 @@ type OIDC struct {
Scope string `json:"scope,omitempty" yaml:"scope" env:"WEB_OIDC_SCOPE" desc:"OIDC scopes to request during authentication."`
}
// Application defines an application for the Web app switcher.
type Application struct {
Icon string `json:"icon,omitempty" yaml:"icon"`
Target string `json:"target,omitempty" yaml:"target"`
Title map[string]string `json:"title,omitempty" yaml:"title"`
Menu string `json:"menu,omitempty" yaml:"menu"`
URL string `json:"url,omitempty" yaml:"url"`
}
// ExternalApp defines an external web app.
// {
// "name": "hello",