mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-29 03:33:10 -04:00
allow configuring loadUserInfo for web (#7714)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
GitHub
parent
05bfe745cb
commit
d296cd9923
@@ -71,6 +71,7 @@ type OIDC struct {
|
||||
ResponseType string `json:"response_type,omitempty" yaml:"response_type" env:"WEB_OIDC_RESPONSE_TYPE" desc:"The OIDC response type to use for authentication."`
|
||||
Scope string `json:"scope,omitempty" yaml:"scope" env:"WEB_OIDC_SCOPE" desc:"OIDC scopes to request during authentication to authorize access to user details. Defaults to 'openid profile email'. Values are separated by blank. More example values but not limited to are 'address' or 'phone' etc."`
|
||||
PostLogoutRedirectURI string `json:"post_logout_redirect_uri,omitempty" yaml:"post_logout_redirect_uri" env:"WEB_OIDC_POST_LOGOUT_REDIRECT_URI" desc:"This value needs to point to a valid and reachable web page. The web client will trigger a redirect to that page directly after the logout action. The default value is empty and redirects to the login page."`
|
||||
LoadUserInfo bool `json:"loadUserInfo" yaml:"load_userinfo" env:"WEB_OIDC_LOAD_USERINFO" desc:"Make a call to the oidc userinfo endpoint of the idp. For on premise AD FS this must be set to 'false'. The default is 'true'."`
|
||||
}
|
||||
|
||||
// Application defines an application for the Web app switcher.
|
||||
|
||||
@@ -95,6 +95,7 @@ func DefaultConfig() *config.Config {
|
||||
ClientID: "web",
|
||||
ResponseType: "code",
|
||||
Scope: "openid profile email",
|
||||
LoadUserInfo: true,
|
||||
},
|
||||
Apps: []string{"files", "search", "text-editor", "pdf-viewer", "external", "admin-settings"},
|
||||
ExternalApps: []config.ExternalApp{
|
||||
|
||||
Reference in New Issue
Block a user