Auth: saml enabled check. (#17960)

This commit is contained in:
Leonard Gram
2019-07-05 16:39:52 +02:00
committed by GitHub
parent e574147b1e
commit b67905a963
2 changed files with 7 additions and 10 deletions

View File

@@ -252,6 +252,9 @@ type Cfg struct {
LoginMaxLifetimeDays int
TokenRotationIntervalMinutes int
// SAML Auth
SAMLEnabled bool
// Dataproxy
SendUserHeader bool
@@ -812,6 +815,9 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
return err
}
// SAML auth
cfg.SAMLEnabled = iniFile.Section("auth.saml").Key("enabled").MustBool(false)
// anonymous access
AnonymousEnabled = iniFile.Section("auth.anonymous").Key("enabled").MustBool(false)
AnonymousOrgName, err = valueAsString(iniFile.Section("auth.anonymous"), "org_name", "")