MM-16860 Support Guest Authentication via SAML (#12622)
* add GuestAttribute setting * Add Constant * add isdefault_guest_attribute to diagnostics.go * revert changes to go.mod * revert changes to LdapInterface.go * revert changes to LdapInterface.go * revert changes to LdapInterface.go
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
34b4bbcb46
Коммит
3f6f44f34c
@@ -195,6 +195,21 @@ func TestConfigIsValidFakeAlgorithm(t *testing.T) {
|
||||
require.Equal(t, "model.config.is_valid.saml_signature_algorithm.app_error", err.Message)
|
||||
}
|
||||
|
||||
func TestConfigOverwriteGuestSettings(t *testing.T) {
|
||||
const attribute = "FakeAttributeName"
|
||||
c1 := Config{
|
||||
SamlSettings: SamlSettings{
|
||||
GuestAttribute: NewString(attribute),
|
||||
},
|
||||
}
|
||||
|
||||
c1.SetDefaults()
|
||||
|
||||
if *c1.SamlSettings.GuestAttribute != attribute {
|
||||
t.Fatal("SamlSettings.GuestAttribute should be overwritten")
|
||||
}
|
||||
}
|
||||
|
||||
func TestConfigDefaultServiceSettingsExperimentalGroupUnreadChannels(t *testing.T) {
|
||||
c1 := Config{}
|
||||
c1.SetDefaults()
|
||||
|
||||
Ссылка в новой задаче
Block a user