Add defaults for SAML settings (#8536)

Этот коммит содержится в:
Joram Wilander
2018-03-28 11:24:13 -04:00
коммит произвёл GitHub
родитель 5151a92f91
Коммит 3394a51dc6

Просмотреть файл

@@ -1359,6 +1359,14 @@ func (s *SamlSettings) SetDefaults() {
s.AssertionConsumerServiceURL = NewString("")
}
if s.ScopingIDPProviderId == nil {
s.ScopingIDPProviderId = NewString("")
}
if s.ScopingIDPName == nil {
s.ScopingIDPName = NewString("")
}
if s.LoginButtonText == nil || *s.LoginButtonText == "" {
s.LoginButtonText = NewString(USER_AUTH_SERVICE_SAML_TEXT)
}