diff --git a/server/channels/app/imports/import_validators.go b/server/channels/app/imports/import_validators.go index dbc542b813..3993f84ca7 100644 --- a/server/channels/app/imports/import_validators.go +++ b/server/channels/app/imports/import_validators.go @@ -320,6 +320,7 @@ var validAuthServices = []string{ model.UserAuthServiceLdap, model.ServiceGoogle, model.ServiceOffice365, + model.ServiceOpenid, } func validateAuthService(authService *string) *model.AppError { diff --git a/server/channels/app/imports/import_validators_test.go b/server/channels/app/imports/import_validators_test.go index 425b2c7b1b..c3fa1dad7c 100644 --- a/server/channels/app/imports/import_validators_test.go +++ b/server/channels/app/imports/import_validators_test.go @@ -646,6 +646,7 @@ func TestImportValidateUserAuth(t *testing.T) { {model.NewPointer("foo"), model.NewPointer("foo"), false}, {nil, model.NewPointer(""), true}, {model.NewPointer(""), nil, true}, + {model.NewPointer(model.ServiceOpenid), model.NewPointer("foo@bar.baz"), true}, {model.NewPointer("foo"), nil, false}, {model.NewPointer("foo"), model.NewPointer(""), false},