diff --git a/internal/org/repository/eventsourcing/login_policy.go b/internal/org/repository/eventsourcing/login_policy.go index daebb3eb29..1b31096b51 100644 --- a/internal/org/repository/eventsourcing/login_policy.go +++ b/internal/org/repository/eventsourcing/login_policy.go @@ -163,6 +163,8 @@ func checkExistingLoginPolicyIDPProviderValidation(idpProvider *iam_es_model.IDP break } } + case model.LoginPolicyRemoved: + idps = make([]*iam_es_model.IDPProvider, 0) } } exists := false