2020-11-30 05:40:56 +00:00
|
|
|
package iam
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
2020-12-11 14:49:19 +00:00
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/label"
|
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/login"
|
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/org_iam"
|
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/password_age"
|
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/password_complexity"
|
|
|
|
"github.com/caos/zitadel/internal/v2/repository/iam/policy/password_lockout"
|
2020-11-30 05:40:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
|
|
|
es.RegisterFilterEventMapper(SetupStartedEventType, SetupStepMapper).
|
|
|
|
RegisterFilterEventMapper(SetupDoneEventType, SetupStepMapper).
|
|
|
|
RegisterFilterEventMapper(GlobalOrgSetEventType, GlobalOrgSetMapper).
|
|
|
|
RegisterFilterEventMapper(ProjectSetEventType, ProjectSetMapper).
|
2020-12-11 14:49:19 +00:00
|
|
|
RegisterFilterEventMapper(label.LabelPolicyAddedEventType, label.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(label.LabelPolicyChangedEventType, label.ChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(login.LoginPolicyAddedEventType, login.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(login.LoginPolicyChangedEventType, login.ChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(org_iam.OrgIAMPolicyAddedEventType, org_iam.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_age.PasswordAgePolicyAddedEventType, password_age.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_age.PasswordAgePolicyChangedEventType, password_age.ChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_complexity.PasswordComplexityPolicyAddedEventType, password_complexity.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_complexity.PasswordComplexityPolicyChangedEventType, password_complexity.ChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_lockout.PasswordLockoutPolicyAddedEventType, password_lockout.AddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(password_lockout.PasswordLockoutPolicyChangedEventType, password_lockout.ChangedEventMapper).
|
2020-11-30 05:40:56 +00:00
|
|
|
RegisterFilterEventMapper(MemberAddedEventType, MemberAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(MemberChangedEventType, MemberChangedEventMapper).
|
2020-11-30 09:41:10 +00:00
|
|
|
RegisterFilterEventMapper(MemberRemovedEventType, MemberRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPConfigAddedEventType, IDPConfigAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPConfigChangedEventType, IDPConfigChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPConfigRemovedEventType, IDPConfigRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPConfigDeactivatedEventType, IDPConfigDeactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPConfigReactivatedEventType, IDPConfigReactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPOIDCConfigAddedEventType, IDPOIDCConfigAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(IDPOIDCConfigChangedEventType, IDPOIDCConfigChangedEventMapper)
|
2020-11-30 05:40:56 +00:00
|
|
|
}
|