mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 14:37:45 +00:00
fix: reactivate/deactivate idp (#1351)
This commit is contained in:
parent
c8b9888427
commit
54f395e2e0
@ -92,6 +92,10 @@ func (i *IDPConfig) processIDPConfig(event *es_models.Event) (err error) {
|
||||
err = idp.AppendEvent(iam_model.IDPProviderTypeSystem, event)
|
||||
case model.IDPConfigDeactivated,
|
||||
model.IDPConfigReactivated:
|
||||
err = idp.SetData(event)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
idp, err = i.view.IDPConfigByID(idp.IDPConfigID)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -97,6 +97,10 @@ func (i *IDPConfig) processIdpConfig(providerType iam_model.IDPProviderType, eve
|
||||
err = idp.AppendEvent(providerType, event)
|
||||
case model.IDPConfigDeactivated, iam_es_model.IDPConfigDeactivated,
|
||||
model.IDPConfigReactivated, iam_es_model.IDPConfigReactivated:
|
||||
err = idp.SetData(event)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
idp, err = i.view.IDPConfigByID(idp.IDPConfigID)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -97,6 +97,10 @@ func (m *IDPConfig) processIdpConfig(providerType iam_model.IDPProviderType, eve
|
||||
err = idp.AppendEvent(providerType, event)
|
||||
case model.IDPConfigDeactivated, iam_es_model.IDPConfigDeactivated,
|
||||
model.IDPConfigReactivated, iam_es_model.IDPConfigReactivated:
|
||||
err = idp.SetData(event)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
idp, err = m.view.IDPConfigByID(idp.IDPConfigID)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user