Auth: Make built-in login configurable (#46978)

This commit is contained in:
Alex
2022-10-12 18:34:59 +03:00
committed by GitHub
parent 7d18460d8f
commit 94ed744454
6 changed files with 46 additions and 4 deletions
+3
View File
@@ -301,6 +301,7 @@ type Cfg struct {
BasicAuthEnabled bool
AdminUser string
AdminPassword string
DisableLogin bool
AdminEmail string
DisableSyncLock bool
@@ -1337,6 +1338,8 @@ func readAuthSettings(iniFile *ini.File, cfg *Cfg) (err error) {
SignoutRedirectUrl = valueAsString(auth, "signout_redirect_url", "")
cfg.OAuthSkipOrgRoleUpdateSync = auth.Key("oauth_skip_org_role_update_sync").MustBool(false)
cfg.DisableLogin = auth.Key("disable_login").MustBool(false)
// SigV4
SigV4AuthEnabled = auth.Key("sigv4_auth_enabled").MustBool(false)
cfg.SigV4AuthEnabled = SigV4AuthEnabled