mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
5b433dcaa3
* feat: login policy * feat: password complexity policy * feat: org iam policy * feat: label policy * feat: add and change policies * feat: second factors * feat: second and multi factors * feat: better naming * feat: better naming
40 lines
2.8 KiB
Go
40 lines
2.8 KiB
Go
package iam
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore/v2"
|
|
"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"
|
|
)
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
|
es.RegisterFilterEventMapper(SetupStartedEventType, SetupStepMapper).
|
|
RegisterFilterEventMapper(SetupDoneEventType, SetupStepMapper).
|
|
RegisterFilterEventMapper(GlobalOrgSetEventType, GlobalOrgSetMapper).
|
|
RegisterFilterEventMapper(ProjectSetEventType, ProjectSetMapper).
|
|
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).
|
|
RegisterFilterEventMapper(MemberAddedEventType, MemberAddedEventMapper).
|
|
RegisterFilterEventMapper(MemberChangedEventType, MemberChangedEventMapper).
|
|
RegisterFilterEventMapper(MemberRemovedEventType, MemberRemovedEventMapper).
|
|
RegisterFilterEventMapper(IDPConfigAddedEventType, IDPConfigAddedEventMapper).
|
|
RegisterFilterEventMapper(IDPConfigChangedEventType, IDPConfigChangedEventMapper).
|
|
RegisterFilterEventMapper(IDPConfigRemovedEventType, IDPConfigRemovedEventMapper).
|
|
RegisterFilterEventMapper(IDPConfigDeactivatedEventType, IDPConfigDeactivatedEventMapper).
|
|
RegisterFilterEventMapper(IDPConfigReactivatedEventType, IDPConfigReactivatedEventMapper).
|
|
RegisterFilterEventMapper(IDPOIDCConfigAddedEventType, IDPOIDCConfigAddedEventMapper).
|
|
RegisterFilterEventMapper(IDPOIDCConfigChangedEventType, IDPOIDCConfigChangedEventMapper)
|
|
}
|