allow to configure applications for web
This commit is contained in:
@@ -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
|
||||||
@@ -36,6 +36,7 @@ type WebConfig struct {
|
|||||||
Theme string `json:"theme,omitempty" yaml:"-"`
|
Theme string `json:"theme,omitempty" yaml:"-"`
|
||||||
OpenIDConnect OIDC `json:"openIdConnect,omitempty" yaml:"oidc"`
|
OpenIDConnect OIDC `json:"openIdConnect,omitempty" yaml:"oidc"`
|
||||||
Apps []string `json:"apps" yaml:"apps"`
|
Apps []string `json:"apps" yaml:"apps"`
|
||||||
|
Applications []Application `json:"applications,omitempty" yaml:"applications"`
|
||||||
ExternalApps []ExternalApp `json:"external_apps,omitempty" yaml:"external_apps"`
|
ExternalApps []ExternalApp `json:"external_apps,omitempty" yaml:"external_apps"`
|
||||||
Options map[string]interface{} `json:"options,omitempty" yaml:"options"`
|
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."`
|
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.
|
// ExternalApp defines an external web app.
|
||||||
// {
|
// {
|
||||||
// "name": "hello",
|
// "name": "hello",
|
||||||
|
|||||||
Reference in New Issue
Block a user