Merge pull request #12029 from Nick-Triller/11893_oauth_auto_login

11893 oauth auto login
This commit is contained in:
Carl Bergquist
2018-11-19 10:21:33 +01:00
committed by GitHub
3 changed files with 36 additions and 1 deletions
+2
View File
@@ -112,6 +112,7 @@ var (
ExternalUserMngLinkUrl string
ExternalUserMngLinkName string
ExternalUserMngInfo string
OAuthAutoLogin bool
ViewersCanEdit bool
// Http auth
@@ -626,6 +627,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
auth := iniFile.Section("auth")
DisableLoginForm = auth.Key("disable_login_form").MustBool(false)
DisableSignoutMenu = auth.Key("disable_signout_menu").MustBool(false)
OAuthAutoLogin = auth.Key("oauth_auto_login").MustBool(false)
SignoutRedirectUrl = auth.Key("signout_redirect_url").String()
// anonymous access