Documentation ¶
Index ¶
- Constants
- func ActionAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func AppendAndReduce(object interface{ ... }, events ...eventstore.Event) error
- func CheckOrgIAMPolicyForUserName(userName string, policy *domain.OrgIAMPolicy) error
- func IAMAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func KeyPairAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func NewActionAggregate(id, resourceOwner string) *eventstore.Aggregate
- func OrgAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func ProjectAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func UserAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func UserGrantAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- type API
- type APIApplicationWriteModel
- func (wm *APIApplicationWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *APIApplicationWriteModel) IsAPI() bool
- func (wm *APIApplicationWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, appID string, ...) (*project.APIConfigChangedEvent, bool, error)
- func (wm *APIApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *APIApplicationWriteModel) Reduce() error
- type ActionExistsModel
- type ActionWriteModel
- type ActionsListByOrgModel
- type ApplicationKeyWriteModel
- type ApplicationWriteModel
- type Commands
- func (c *Commands) ActivateDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) ActivateLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) AddAPIApplication(ctx context.Context, application *domain.APIApp, resourceOwner string) (_ *domain.APIApp, err error)
- func (c *Commands) AddAccessAndRefreshToken(ctx context.Context, orgID, agentID, clientID, userID, refreshToken string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) AddAction(ctx context.Context, addAction *domain.Action, resourceOwner string) (_ string, _ *domain.ObjectDetails, err error)
- func (c *Commands) AddApplicationKey(ctx context.Context, key *domain.ApplicationKey, resourceOwner string) (_ *domain.ApplicationKey, err error)
- func (c *Commands) AddDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)
- func (c *Commands) AddDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) AddDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) AddDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) AddDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) AddDefaultOrgIAMPolicy(ctx context.Context, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
- func (c *Commands) AddDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) AddDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) AddFontDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddFontLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddHuman(ctx context.Context, orgID string, human *domain.Human) (*domain.Human, error)
- func (c *Commands) AddHumanAvatar(ctx context.Context, orgID, userID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddHumanOTP(ctx context.Context, userID, resourceowner string) (*domain.OTP, error)
- func (c *Commands) AddIAMMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) AddIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)
- func (c *Commands) AddIDPProviderToDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
- func (c *Commands) AddIDPProviderToLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
- func (c *Commands) AddIconDarkDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconDarkLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) AddLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) AddLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) AddLogoDarkDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoDarkLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)
- func (c *Commands) AddMachine(ctx context.Context, orgID string, machine *domain.Machine) (*domain.Machine, error)
- func (c *Commands) AddMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (domain.MultiFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddMultiFactorToLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (domain.MultiFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddNewRefreshTokenAndAccessToken(ctx context.Context, userID, orgID, agentID, clientID string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) AddOIDCApplication(ctx context.Context, application *domain.OIDCApp, resourceOwner string) (_ *domain.OIDCApp, err error)
- func (c *Commands) AddOrg(ctx context.Context, name, userID, resourceOwner string, ...) (*domain.Org, error)
- func (c *Commands) AddOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.OrgDomain, error)
- func (c *Commands) AddOrgIAMPolicy(ctx context.Context, resourceOwner string, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
- func (c *Commands) AddOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) AddPasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) AddPasswordComplexityPolicy(ctx context.Context, resourceOwner string, ...) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) AddPersonalAccessToken(ctx context.Context, userID, resourceOwner string, expirationDate time.Time, ...) (*domain.Token, string, error)
- func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) AddProject(ctx context.Context, project *domain.Project, ...) (_ *domain.Project, err error)
- func (c *Commands) AddProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string) (_ *domain.ProjectGrant, err error)
- func (c *Commands) AddProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
- func (c *Commands) AddProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
- func (c *Commands) AddProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
- func (c *Commands) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (domain.SecondFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddSecondFactorToLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (domain.SecondFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddUserGrant(ctx context.Context, usergrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)
- func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)
- func (c *Commands) AddUserToken(ctx context.Context, orgID, agentID, clientID, userID string, ...) (*domain.Token, error)
- func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) BulkAddedUserIDPLinks(ctx context.Context, userID, resourceOwner string, links []*domain.UserIDPLink) (err error)
- func (c *Commands) BulkRemoveUserGrant(ctx context.Context, grantIDs []string, resourceOwner string) (err error)
- func (c *Commands) BulkRemoveUserMetadata(ctx context.Context, userID, resourceOwner string, metadataKeys ...string) (_ *domain.ObjectDetails, err error)
- func (c *Commands) BulkSetUserMetadata(ctx context.Context, userID, resourceOwner string, ...) (_ *domain.ObjectDetails, err error)
- func (c *Commands) ChangeAPIApplication(ctx context.Context, apiApp *domain.APIApp, resourceOwner string) (*domain.APIApp, error)
- func (c *Commands) ChangeAPIApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string) (*domain.APIApp, error)
- func (c *Commands) ChangeAction(ctx context.Context, actionChange *domain.Action, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, ...) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)
- func (c *Commands) ChangeDefaultIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig) (*domain.JWTIDPConfig, error)
- func (c *Commands) ChangeDefaultIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig) (*domain.OIDCIDPConfig, error)
- func (c *Commands) ChangeDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) ChangeDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) ChangeDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) ChangeDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) ChangeDefaultOrgIAMPolicy(ctx context.Context, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
- func (c *Commands) ChangeDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) ChangeDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) ChangeDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) ChangeHumanAddress(ctx context.Context, address *domain.Address) (*domain.Address, error)
- func (c *Commands) ChangeHumanEmail(ctx context.Context, email *domain.Email) (*domain.Email, error)
- func (c *Commands) ChangeHumanPhone(ctx context.Context, phone *domain.Phone, resourceOwner string) (*domain.Phone, error)
- func (c *Commands) ChangeHumanProfile(ctx context.Context, profile *domain.Profile) (*domain.Profile, error)
- func (c *Commands) ChangeIAMMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) ChangeIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)
- func (c *Commands) ChangeIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig, resourceOwner string) (*domain.JWTIDPConfig, error)
- func (c *Commands) ChangeIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig, resourceOwner string) (*domain.OIDCIDPConfig, error)
- func (c *Commands) ChangeLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) ChangeLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) ChangeLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) ChangeMachine(ctx context.Context, machine *domain.Machine) (*domain.Machine, error)
- func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) ChangeOIDCApplication(ctx context.Context, oidc *domain.OIDCApp, resourceOwner string) (*domain.OIDCApp, error)
- func (c *Commands) ChangeOIDCApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string) (*domain.OIDCApp, error)
- func (c *Commands) ChangeOrg(ctx context.Context, orgID, name string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeOrgIAMPolicy(ctx context.Context, resourceOwner string, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
- func (c *Commands) ChangeOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) ChangePassword(ctx context.Context, ...) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) ChangePasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) ChangePasswordComplexityPolicy(ctx context.Context, resourceOwner string, ...) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) ChangePrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) ChangeProject(ctx context.Context, projectChange *domain.Project, resourceOwner string) (*domain.Project, error)
- func (c *Commands) ChangeProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string, ...) (_ *domain.ProjectGrant, err error)
- func (c *Commands) ChangeProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
- func (c *Commands) ChangeProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
- func (c *Commands) ChangeProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
- func (c *Commands) ChangeUserGrant(ctx context.Context, userGrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)
- func (c *Commands) ChangeUsername(ctx context.Context, orgID, userID, userName string) (*domain.ObjectDetails, error)
- func (c *Commands) ClearFlow(ctx context.Context, flowType domain.FlowType, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) CreateHumanEmailVerificationCode(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) CreateHumanPhoneVerificationCode(ctx context.Context, userID, resourceowner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)
- func (c *Commands) DeactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) DeleteAction(ctx context.Context, actionID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) ExecuteSetupSteps(ctx context.Context, steps []Step) error
- func (c *Commands) GenerateOrgDomainValidation(ctx context.Context, orgDomain *domain.OrgDomain) (token, url string, err error)
- func (c *Commands) GenerateSigningKeyPair(ctx context.Context, algorithm string) error
- func (c *Commands) GetIAM(ctx context.Context) (*domain.IAM, error)
- func (c *Commands) HumanAddPasswordlessInitCode(ctx context.Context, userID, resourceOwner string) (*domain.PasswordlessInitCode, error)
- func (c *Commands) HumanAddPasswordlessSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool, ...) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanAddPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, codeID, verificationCode string, ...) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanAddU2FSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanBeginPasswordlessLogin(ctx context.Context, userID, resourceOwner string, ...) (*domain.WebAuthNLogin, error)
- func (c *Commands) HumanBeginU2FLogin(ctx context.Context, userID, resourceOwner string, ...) (*domain.WebAuthNLogin, error)
- func (c *Commands) HumanCheckMFAOTP(ctx context.Context, userID, code, resourceowner string, ...) error
- func (c *Commands) HumanCheckMFAOTPSetup(ctx context.Context, userID, code, userAgentID, resourceowner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanCheckPassword(ctx context.Context, orgID, userID, password string, ...) (err error)
- func (c *Commands) HumanEmailVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanFinishPasswordlessLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, ...) error
- func (c *Commands) HumanFinishU2FLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, ...) error
- func (c *Commands) HumanHumanPasswordlessSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumanInitCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanPasswordlessInitCodeSent(ctx context.Context, userID, resourceOwner, codeID string) error
- func (c *Commands) HumanPasswordlessSetupInitCode(ctx context.Context, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumanPhoneVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanRemoveOTP(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanRemovePasswordless(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanRemoveU2F(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanSendPasswordlessInitCode(ctx context.Context, userID, resourceOwner string) (*domain.PasswordlessInitCode, error)
- func (c *Commands) HumanSkipMFAInit(ctx context.Context, userID, resourceowner string) (err error)
- func (c *Commands) HumanVerifyInitCode(ctx context.Context, userID, resourceOwner, code, passwordString string) error
- func (c *Commands) HumanVerifyU2FSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumansSignOut(ctx context.Context, agentID string, userIDs []string) error
- func (c *Commands) ImportHuman(ctx context.Context, orgID string, human *domain.Human, passwordless bool) (_ *domain.Human, passwordlessCode *domain.PasswordlessInitCode, err error)
- func (c *Commands) LockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) PasswordCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) ReactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)
- func (c *Commands) ReactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RegisterHuman(ctx context.Context, orgID string, human *domain.Human, ...) (*domain.Human, error)
- func (c *Commands) RemoveApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveApplicationKey(ctx context.Context, projectID, applicationID, keyID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveAsset(ctx context.Context, bucketName, storeKey string) error
- func (c *Commands) RemoveAssetsFolder(ctx context.Context, bucketName, path string, recursive bool) error
- func (c *Commands) RemoveCustomIAMLoginTexts(ctx context.Context, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveFontDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveFontLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveHumanAvatar(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveHumanPhone(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIAMMember(ctx context.Context, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIAMMessageTexts(ctx context.Context, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLockoutPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLoginPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveMailTemplate(ctx context.Context, orgID string) error
- func (c *Commands) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveMultiFactorFromLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgFeatures(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgIAMPolicy(ctx context.Context, orgID string) error
- func (c *Commands) RemoveOrgLoginTexts(ctx context.Context, resourceOwner string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgMember(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgMessageTexts(ctx context.Context, resourceOwner, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePasswordAgePolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePasswordComplexityPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePersonalAccessToken(ctx context.Context, userID, tokenID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePrivacyPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProject(ctx context.Context, projectID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) RemoveProjectGrantMember(ctx context.Context, projectID, userID, grantID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectMember(ctx context.Context, projectID, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectRole(ctx context.Context, projectID, key, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveSecondFactorFromLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RemoveUserIDPLink(ctx context.Context, link *domain.UserIDPLink) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserMachineKey(ctx context.Context, userID, keyID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserMetadata(ctx context.Context, metadataKey, userID, resourceOwner string) (_ *domain.ObjectDetails, err error)
- func (c *Commands) RenewRefreshTokenAndAccessToken(ctx context.Context, userID, orgID, refreshToken, agentID, clientID string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) RequestSetPassword(ctx context.Context, userID, resourceOwner string, ...) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) ResendInitialMail(ctx context.Context, userID, email, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RevokeAccessToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)
- func (c *Commands) RevokeRefreshToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)
- func (c *Commands) RevokeRefreshTokens(ctx context.Context, userID, orgID string, tokenIDs []string) (err error)
- func (c *Commands) SetCustomIAMLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
- func (c *Commands) SetDefaultFeatures(ctx context.Context, features *domain.Features) (*domain.ObjectDetails, error)
- func (c *Commands) SetDefaultMessageText(ctx context.Context, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
- func (c *Commands) SetIAMCustomText(ctx context.Context, customText *domain.CustomText) (*domain.CustomText, error)
- func (c *Commands) SetOrgFeatures(ctx context.Context, resourceOwner string, features *domain.Features) (*domain.ObjectDetails, error)
- func (c *Commands) SetOrgLoginText(ctx context.Context, resourceOwner string, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
- func (c *Commands) SetOrgMessageText(ctx context.Context, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) SetPassword(ctx context.Context, orgID, userID, passwordString string, oneTime bool) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) SetPasswordWithVerifyCode(ctx context.Context, orgID, userID, code, passwordString, userAgentID string) (err error)
- func (c *Commands) SetPrimaryOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)
- func (c *Commands) SetTriggerActions(ctx context.Context, flowType domain.FlowType, triggerType domain.TriggerType, ...) (*domain.ObjectDetails, error)
- func (c *Commands) SetUpOrg(ctx context.Context, organisation *domain.Org, admin *domain.Human, ...) (*domain.ObjectDetails, error)
- func (c *Commands) SetUserMetadata(ctx context.Context, metadata *domain.Metadata, userID, resourceOwner string) (_ *domain.Metadata, err error)
- func (c *Commands) SetupStep1(ctx context.Context, step1 *Step1) error
- func (c *Commands) SetupStep10(ctx context.Context, step *Step10) error
- func (c *Commands) SetupStep11(ctx context.Context, step *Step11) error
- func (c *Commands) SetupStep12(ctx context.Context, step *Step12) error
- func (c *Commands) SetupStep13(ctx context.Context, step *Step13) error
- func (c *Commands) SetupStep14(ctx context.Context, step *Step14) error
- func (c *Commands) SetupStep15(ctx context.Context, step *Step15) error
- func (c *Commands) SetupStep16(ctx context.Context, step *Step16) error
- func (c *Commands) SetupStep17(ctx context.Context, step *Step17) error
- func (c *Commands) SetupStep18(ctx context.Context, step *Step18) error
- func (c *Commands) SetupStep19(ctx context.Context, step *Step19) error
- func (c *Commands) SetupStep2(ctx context.Context, step *Step2) error
- func (c *Commands) SetupStep20(ctx context.Context, step *Step20) error
- func (c *Commands) SetupStep21(ctx context.Context, step *Step21) error
- func (c *Commands) SetupStep22(ctx context.Context, step *Step22) error
- func (c *Commands) SetupStep3(ctx context.Context, step *Step3) error
- func (c *Commands) SetupStep4(ctx context.Context, step *Step4) error
- func (c *Commands) SetupStep5(ctx context.Context, step *Step5) error
- func (c *Commands) SetupStep6(ctx context.Context, step *Step6) error
- func (c *Commands) SetupStep7(ctx context.Context, step *Step7) error
- func (c *Commands) SetupStep8(ctx context.Context, step *Step8) error
- func (c *Commands) SetupStep9(ctx context.Context, step *Step9) error
- func (c *Commands) StartSetup(ctx context.Context, step domain.Step) (*domain.IAM, error)
- func (c *Commands) UnlockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) UploadAsset(ctx context.Context, bucketName, objectName, contentType string, ...) (*domain.AssetInfo, error)
- func (c *Commands) UserDomainClaimedSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) UserIDPLoginChecked(ctx context.Context, orgID, userID string, authRequest *domain.AuthRequest) (err error)
- func (c *Commands) ValidateOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyAPIClientSecret(ctx context.Context, projectID, appID, secret string) (err error)
- func (c *Commands) VerifyHumanEmail(ctx context.Context, userID, code, resourceowner string) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyHumanPhone(ctx context.Context, userID, code, resourceowner string) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyOIDCClientSecret(ctx context.Context, projectID, appID, secret string) (err error)
- type Config
- type CustomLoginTextReadModel
- type CustomLoginTextsReadModel
- type CustomMessageTemplatesReadModel
- type CustomMessageTextReadModel
- type CustomText
- type CustomTextWriteModel
- type Domain
- type ExistingLabelPoliciesReadModel
- type FeaturesWriteModel
- type FlowWriteModel
- type HumanAddressWriteModel
- type HumanEmailWriteModel
- type HumanInitCodeWriteModel
- type HumanOTPWriteModel
- type HumanPasswordWriteModel
- type HumanPasswordlessInitCodeWriteModel
- type HumanPasswordlessLoginReadModel
- type HumanPasswordlessTokensReadModel
- func (wm *HumanPasswordlessTokensReadModel) AppendEvents(events ...eventstore.Event)
- func (rm *HumanPasswordlessTokensReadModel) Query() *eventstore.SearchQueryBuilder
- func (wm *HumanPasswordlessTokensReadModel) Reduce() error
- func (wm *HumanPasswordlessTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
- type HumanPhoneWriteModel
- type HumanProfileWriteModel
- type HumanRefreshTokenWriteModel
- type HumanU2FLoginReadModel
- type HumanU2FTokensReadModel
- func (wm *HumanU2FTokensReadModel) AppendEvents(events ...eventstore.Event)
- func (rm *HumanU2FTokensReadModel) Query() *eventstore.SearchQueryBuilder
- func (wm *HumanU2FTokensReadModel) Reduce() error
- func (wm *HumanU2FTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
- type HumanWebAuthNWriteModel
- type HumanWriteModel
- type IAMCustomLoginTextReadModel
- type IAMCustomMessageTextReadModel
- type IAMCustomTextWriteModel
- type IAMFeaturesWriteModel
- func (wm *IAMFeaturesWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMFeaturesWriteModel) IsValid() bool
- func (wm *IAMFeaturesWriteModel) NewSetEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.FeaturesSetEvent, bool)
- func (wm *IAMFeaturesWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMFeaturesWriteModel) Reduce() error
- type IAMIDPConfigWriteModel
- func (wm *IAMIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
- func (wm *IAMIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMIDPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, ...) (*iam.IDPConfigChangedEvent, bool)
- func (wm *IAMIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMIDPConfigWriteModel) Reduce() error
- type IAMIDPJWTConfigWriteModel
- func (wm *IAMIDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMIDPJWTConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.IDPJWTConfigChangedEvent, bool, error)
- func (wm *IAMIDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMIDPJWTConfigWriteModel) Reduce() error
- type IAMIDPOIDCConfigWriteModel
- func (wm *IAMIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMIDPOIDCConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.IDPOIDCConfigChangedEvent, bool, error)
- func (wm *IAMIDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMIDPOIDCConfigWriteModel) Reduce() error
- type IAMIdentityProviderWriteModel
- type IAMLabelPolicyWriteModel
- func (wm *IAMLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMLabelPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.LabelPolicyChangedEvent, bool)
- func (wm *IAMLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMLabelPolicyWriteModel) Reduce() error
- type IAMLockoutPolicyWriteModel
- func (wm *IAMLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMLockoutPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, ...) (*iam.LockoutPolicyChangedEvent, bool)
- func (wm *IAMLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMLockoutPolicyWriteModel) Reduce() error
- type IAMLoginPolicyWriteModel
- func (wm *IAMLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMLoginPolicyWriteModel) IsValid() bool
- func (wm *IAMLoginPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.LoginPolicyChangedEvent, bool)
- func (wm *IAMLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMLoginPolicyWriteModel) Reduce() error
- type IAMMailTemplateWriteModel
- func (wm *IAMMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMMailTemplateWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, template []byte) (*iam.MailTemplateChangedEvent, bool)
- func (wm *IAMMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMMailTemplateWriteModel) Reduce() error
- type IAMMemberWriteModel
- type IAMMultiFactorWriteModel
- type IAMOrgIAMPolicyWriteModel
- func (wm *IAMOrgIAMPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMOrgIAMPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.OrgIAMPolicyChangedEvent, bool)
- func (wm *IAMOrgIAMPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMOrgIAMPolicyWriteModel) Reduce() error
- type IAMPasswordAgePolicyWriteModel
- func (wm *IAMPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMPasswordAgePolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.PasswordAgePolicyChangedEvent, bool)
- func (wm *IAMPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMPasswordAgePolicyWriteModel) Reduce() error
- type IAMPasswordComplexityPolicyWriteModel
- func (wm *IAMPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMPasswordComplexityPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, ...) (*iam.PasswordComplexityPolicyChangedEvent, bool)
- func (wm *IAMPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMPasswordComplexityPolicyWriteModel) Reduce() error
- type IAMPrivacyPolicyWriteModel
- func (wm *IAMPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IAMPrivacyPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*iam.PrivacyPolicyChangedEvent, bool)
- func (wm *IAMPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IAMPrivacyPolicyWriteModel) Reduce() error
- type IAMSecondFactorWriteModel
- type IAMWriteModel
- type IDPConfigWriteModel
- type IDPJWTConfigWriteModel
- func (wm *IDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IDPJWTConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.IDPJWTConfigChangedEvent, bool, error)
- func (wm *IDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IDPJWTConfigWriteModel) Reduce() error
- type IDPOIDCConfigWriteModel
- func (wm *IDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IDPOIDCConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.IDPOIDCConfigChangedEvent, bool, error)
- func (wm *IDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IDPOIDCConfigWriteModel) Reduce() error
- type IdentityProviderWriteModel
- type JWTConfigWriteModel
- type KeyPairWriteModel
- type LabelPolicyWriteModel
- type LockoutPolicyWriteModel
- type LoginPolicy
- type LoginPolicyWriteModel
- type MachineKeyWriteModel
- type MachineWriteModel
- type MailTemplateWriteModel
- type MemberWriteModel
- type MetadataListWriteModel
- type MetadataWriteModel
- type MultiFactorWriteModel
- type OIDCApp
- type OIDCApplicationWriteModel
- func (wm *OIDCApplicationWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OIDCApplicationWriteModel) IsOIDC() bool
- func (wm *OIDCApplicationWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, appID string, ...) (*project.OIDCConfigChangedEvent, bool, error)
- func (wm *OIDCApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OIDCApplicationWriteModel) Reduce() error
- type OIDCConfigWriteModel
- type ORGOrgIAMPolicyWriteModel
- func (wm *ORGOrgIAMPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *ORGOrgIAMPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.OrgIAMPolicyChangedEvent, bool)
- func (wm *ORGOrgIAMPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *ORGOrgIAMPolicyWriteModel) Reduce() error
- type Org
- type OrgAuthFactorsAllowedWriteModel
- func (wm *OrgAuthFactorsAllowedWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgAuthFactorsAllowedWriteModel) Reduce() error
- func (wm *OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel(factor domain.MultiFactorType) *OrgMultiFactorWriteModel
- func (wm *OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel(factor domain.SecondFactorType) *OrgSecondFactorWriteModel
- type OrgCustomLoginTextReadModel
- type OrgCustomLoginTextsReadModel
- type OrgCustomMessageTemplatesReadModel
- type OrgCustomMessageTextReadModel
- type OrgDomainVerifiedWriteModel
- type OrgDomainWriteModel
- type OrgDomainsWriteModel
- type OrgFeatureCheckerFunc
- type OrgFeaturesWriteModel
- func (wm *OrgFeaturesWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgFeaturesWriteModel) IsValid() bool
- func (wm *OrgFeaturesWriteModel) NewSetEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.FeaturesSetEvent, bool)
- func (wm *OrgFeaturesWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgFeaturesWriteModel) Reduce() error
- type OrgFlowWriteModel
- type OrgIDPConfigWriteModel
- func (wm *OrgIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
- func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgIDPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, ...) (*org.IDPConfigChangedEvent, bool)
- func (wm *OrgIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgIDPConfigWriteModel) Reduce() error
- type OrgIdentityProviderWriteModel
- type OrgLabelPolicyWriteModel
- func (wm *OrgLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLabelPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.LabelPolicyChangedEvent, bool)
- func (wm *OrgLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLabelPolicyWriteModel) Reduce() error
- type OrgLockoutPolicyWriteModel
- func (wm *OrgLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLockoutPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, ...) (*org.LockoutPolicyChangedEvent, bool)
- func (wm *OrgLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLockoutPolicyWriteModel) Reduce() error
- type OrgLoginPolicyWriteModel
- func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLoginPolicyWriteModel) IsValid() bool
- func (wm *OrgLoginPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.LoginPolicyChangedEvent, bool)
- func (wm *OrgLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLoginPolicyWriteModel) Reduce() error
- type OrgMailTemplateWriteModel
- func (wm *OrgMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgMailTemplateWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, template []byte) (*org.MailTemplateChangedEvent, bool)
- func (wm *OrgMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgMailTemplateWriteModel) Reduce() error
- type OrgMemberWriteModel
- type OrgMultiFactorWriteModel
- type OrgPasswordAgePolicyWriteModel
- func (wm *OrgPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPasswordAgePolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.PasswordAgePolicyChangedEvent, bool)
- func (wm *OrgPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPasswordAgePolicyWriteModel) Reduce() error
- type OrgPasswordComplexityPolicyWriteModel
- func (wm *OrgPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPasswordComplexityPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, ...) (*org.PasswordComplexityPolicyChangedEvent, bool)
- func (wm *OrgPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPasswordComplexityPolicyWriteModel) Reduce() error
- type OrgPrivacyPolicyWriteModel
- func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.PrivacyPolicyChangedEvent, bool)
- func (wm *OrgPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPrivacyPolicyWriteModel) Reduce() error
- type OrgSecondFactorWriteModel
- type OrgWriteModel
- type PasswordAgePolicyWriteModel
- type PasswordComplexityPolicyWriteModel
- type PersonalAccessTokenWriteModel
- type PolicyOrgIAMWriteModel
- type PrivacyPolicyWriteModel
- type Project
- type ProjectGrantMemberWriteModel
- type ProjectGrantPreConditionReadModel
- type ProjectGrantWriteModel
- type ProjectMemberWriteModel
- type ProjectRoleWriteModel
- func (wm *ProjectRoleWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *ProjectRoleWriteModel) NewProjectRoleChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*project.RoleChangedEvent, bool, error)
- func (wm *ProjectRoleWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *ProjectRoleWriteModel) Reduce() error
- type ProjectWriteModel
- type SecondFactorWriteModel
- type Step
- type Step1
- type Step10
- type Step11
- type Step12
- type Step13
- type Step14
- type Step15
- type Step16
- type Step17
- type Step18
- type Step19
- type Step2
- type Step20
- type Step21
- type Step22
- type Step3
- type Step4
- type Step5
- type Step6
- type Step7
- type Step8
- type Step9
- type UniqueConstraintReadModel
- type User
- type UserAccessTokenWriteModel
- type UserGrantPreConditionReadModel
- type UserGrantWriteModel
- type UserIDPLinkWriteModel
- type UserMetadataByOrgListWriteModel
- type UserMetadataListWriteModel
- type UserMetadataWriteModel
- type UserWriteModel
Constants ¶
View Source
const ( OIDCResponseTypeCode = "CODE" OIDCResponseTypeIDToken = "ID_TOKEN" OIDCResponseTypeToken = "ID_TOKEN TOKEN" OIDCGrantTypeAuthorizationCode = "AUTHORIZATION_CODE" OIDCGrantTypeImplicit = "IMPLICIT" OIDCGrantTypeRefreshToken = "REFRESH_TOKEN" OIDCApplicationTypeNative = "NATIVE" OIDCApplicationTypeUserAgent = "USER_AGENT" OIDCApplicationTypeWeb = "WEB" AuthMethodTypeNone = "NONE" AuthMethodTypeBasic = "BASIC" AuthMethodTypePost = "POST" AuthMethodTypePrivateKeyJWT = "PRIVATE_KEY_JWT" )
View Source
const (
SetupUser = "SETUP"
)
Variables ¶
This section is empty.
Functions ¶
func ActionAggregateFromWriteModel ¶
func ActionAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func AppendAndReduce ¶
func AppendAndReduce(object interface { AppendEvents(...eventstore.Event) Reduce() error }, events ...eventstore.Event) error
func CheckOrgIAMPolicyForUserName ¶
func CheckOrgIAMPolicyForUserName(userName string, policy *domain.OrgIAMPolicy) error
func IAMAggregateFromWriteModel ¶
func IAMAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func KeyPairAggregateFromWriteModel ¶
func KeyPairAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func NewActionAggregate ¶
func NewActionAggregate(id, resourceOwner string) *eventstore.Aggregate
func OrgAggregateFromWriteModel ¶
func OrgAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func ProjectAggregateFromWriteModel ¶
func ProjectAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func UserAggregateFromWriteModel ¶
func UserAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func UserGrantAggregateFromWriteModel ¶
func UserGrantAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
Types ¶
type APIApplicationWriteModel ¶
type APIApplicationWriteModel struct { eventstore.WriteModel AppID string AppName string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string AuthMethodType domain.APIAuthMethodType State domain.AppState // contains filtered or unexported fields }
func NewAPIApplicationWriteModel ¶
func NewAPIApplicationWriteModel(projectID, resourceOwner string) *APIApplicationWriteModel
func NewAPIApplicationWriteModelWithAppID ¶
func NewAPIApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *APIApplicationWriteModel
func (*APIApplicationWriteModel) AppendEvents ¶
func (wm *APIApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*APIApplicationWriteModel) IsAPI ¶
func (wm *APIApplicationWriteModel) IsAPI() bool
func (*APIApplicationWriteModel) NewChangedEvent ¶
func (wm *APIApplicationWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, appID string, authMethodType domain.APIAuthMethodType, ) (*project.APIConfigChangedEvent, bool, error)
func (*APIApplicationWriteModel) Query ¶
func (wm *APIApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*APIApplicationWriteModel) Reduce ¶
func (wm *APIApplicationWriteModel) Reduce() error
type ActionExistsModel ¶
type ActionExistsModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func NewActionsExistModel ¶
func NewActionsExistModel(actionIDs []string, resourceOwner string) *ActionExistsModel
func (*ActionExistsModel) Query ¶
func (wm *ActionExistsModel) Query() *eventstore.SearchQueryBuilder
func (*ActionExistsModel) Reduce ¶
func (wm *ActionExistsModel) Reduce() error
type ActionWriteModel ¶
type ActionWriteModel struct { eventstore.WriteModel Name string Script string Timeout time.Duration AllowedToFail bool State domain.ActionState }
func NewActionWriteModel ¶
func NewActionWriteModel(actionID string, resourceOwner string) *ActionWriteModel
func (*ActionWriteModel) NewChangedEvent ¶
func (wm *ActionWriteModel) NewChangedEvent( ctx context.Context, agg *eventstore.Aggregate, name string, script string, timeout time.Duration, allowedToFail bool, ) (*action.ChangedEvent, error)
func (*ActionWriteModel) Query ¶
func (wm *ActionWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ActionWriteModel) Reduce ¶
func (wm *ActionWriteModel) Reduce() error
type ActionsListByOrgModel ¶
type ActionsListByOrgModel struct { eventstore.WriteModel Actions map[string]*ActionWriteModel }
func NewActionsListByOrgModel ¶
func NewActionsListByOrgModel(resourceOwner string) *ActionsListByOrgModel
func (*ActionsListByOrgModel) Query ¶
func (wm *ActionsListByOrgModel) Query() *eventstore.SearchQueryBuilder
func (*ActionsListByOrgModel) Reduce ¶
func (wm *ActionsListByOrgModel) Reduce() error
type ApplicationKeyWriteModel ¶
type ApplicationKeyWriteModel struct { eventstore.WriteModel AppID string ClientID string KeyID string KeyType domain.AuthNKeyType ExpirationDate time.Time State domain.AppState KeysAllowed bool }
func NewApplicationKeyWriteModel ¶
func NewApplicationKeyWriteModel(projectID, appID, keyID, resourceOwner string) *ApplicationKeyWriteModel
func (*ApplicationKeyWriteModel) AppendEvents ¶
func (wm *ApplicationKeyWriteModel) AppendEvents(events ...eventstore.Event)
func (*ApplicationKeyWriteModel) Query ¶
func (wm *ApplicationKeyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ApplicationKeyWriteModel) Reduce ¶
func (wm *ApplicationKeyWriteModel) Reduce() error
type ApplicationWriteModel ¶
type ApplicationWriteModel struct { eventstore.WriteModel AppID string State domain.AppState Name string }
func NewApplicationWriteModel ¶
func NewApplicationWriteModel(projectID, resourceOwner string) *ApplicationWriteModel
func NewApplicationWriteModelWithAppIDC ¶
func NewApplicationWriteModelWithAppIDC(projectID, appID, resourceOwner string) *ApplicationWriteModel
func (*ApplicationWriteModel) AppendEvents ¶
func (wm *ApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*ApplicationWriteModel) Query ¶
func (wm *ApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ApplicationWriteModel) Reduce ¶
func (wm *ApplicationWriteModel) Reduce() error
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func StartCommands ¶
func StartCommands( es *eventstore.Eventstore, defaults sd.SystemDefaults, authZConfig authz.Config, staticStore static.Storage, authZRepo authz_repo.Repository, ) (repo *Commands, err error)
func (*Commands) ActivateDefaultLabelPolicy ¶
func (*Commands) ActivateLabelPolicy ¶
func (*Commands) AddAPIApplication ¶
func (*Commands) AddAccessAndRefreshToken ¶
func (c *Commands) AddAccessAndRefreshToken( ctx context.Context, orgID, agentID, clientID, userID, refreshToken string, audience, scopes, authMethodsReferences []string, accessLifetime, refreshIdleExpiration, refreshExpiration time.Duration, authTime time.Time, ) (accessToken *domain.Token, newRefreshToken string, err error)
func (*Commands) AddApplicationKey ¶
func (c *Commands) AddApplicationKey(ctx context.Context, key *domain.ApplicationKey, resourceOwner string) (_ *domain.ApplicationKey, err error)
func (*Commands) AddDefaultIDPConfig ¶
func (*Commands) AddDefaultLabelPolicy ¶
func (c *Commands) AddDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) AddDefaultLockoutPolicy ¶
func (c *Commands) AddDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) AddDefaultLoginPolicy ¶
func (c *Commands) AddDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) AddDefaultMailTemplate ¶
func (c *Commands) AddDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) AddDefaultOrgIAMPolicy ¶
func (c *Commands) AddDefaultOrgIAMPolicy(ctx context.Context, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
func (*Commands) AddDefaultPasswordAgePolicy ¶
func (c *Commands) AddDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) AddDefaultPasswordComplexityPolicy ¶
func (c *Commands) AddDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) AddDefaultPrivacyPolicy ¶
func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) AddFontDefaultLabelPolicy ¶
func (*Commands) AddFontLabelPolicy ¶
func (*Commands) AddHumanAvatar ¶
func (*Commands) AddHumanOTP ¶
func (*Commands) AddIAMMember ¶
func (*Commands) AddIDPConfig ¶
func (*Commands) AddIDPProviderToDefaultLoginPolicy ¶
func (c *Commands) AddIDPProviderToDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
func (*Commands) AddIDPProviderToLoginPolicy ¶
func (c *Commands) AddIDPProviderToLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
func (*Commands) AddIconDarkDefaultLabelPolicy ¶
func (*Commands) AddIconDarkLabelPolicy ¶
func (*Commands) AddIconDefaultLabelPolicy ¶
func (*Commands) AddIconLabelPolicy ¶
func (*Commands) AddLabelPolicy ¶
func (c *Commands) AddLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) AddLockoutPolicy ¶
func (c *Commands) AddLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) AddLoginPolicy ¶
func (c *Commands) AddLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) AddLogoDarkDefaultLabelPolicy ¶
func (*Commands) AddLogoDarkLabelPolicy ¶
func (*Commands) AddLogoDefaultLabelPolicy ¶
func (*Commands) AddLogoLabelPolicy ¶
func (*Commands) AddMachine ¶
func (*Commands) AddMailTemplate ¶
func (c *Commands) AddMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) AddMultiFactorToDefaultLoginPolicy ¶
func (c *Commands) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (domain.MultiFactorType, *domain.ObjectDetails, error)
func (*Commands) AddMultiFactorToLoginPolicy ¶
func (c *Commands) AddMultiFactorToLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (domain.MultiFactorType, *domain.ObjectDetails, error)
func (*Commands) AddNewRefreshTokenAndAccessToken ¶
func (c *Commands) AddNewRefreshTokenAndAccessToken( ctx context.Context, userID, orgID, agentID, clientID string, audience, scopes, authMethodsReferences []string, refreshExpiration, accessLifetime, refreshIdleExpiration time.Duration, authTime time.Time, ) (accessToken *domain.Token, newRefreshToken string, err error)
func (*Commands) AddOIDCApplication ¶
func (*Commands) AddOrgDomain ¶
func (*Commands) AddOrgIAMPolicy ¶
func (c *Commands) AddOrgIAMPolicy(ctx context.Context, resourceOwner string, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
func (*Commands) AddOrgMember ¶
func (*Commands) AddPasswordAgePolicy ¶
func (c *Commands) AddPasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) AddPasswordComplexityPolicy ¶
func (c *Commands) AddPasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) AddPersonalAccessToken ¶
func (*Commands) AddPrivacyPolicy ¶
func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) AddProject ¶
func (*Commands) AddProjectGrant ¶
func (c *Commands) AddProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string) (_ *domain.ProjectGrant, err error)
func (*Commands) AddProjectGrantMember ¶
func (c *Commands) AddProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
func (*Commands) AddProjectMember ¶
func (*Commands) AddProjectRole ¶
func (c *Commands) AddProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
func (*Commands) AddSecondFactorToDefaultLoginPolicy ¶
func (c *Commands) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (domain.SecondFactorType, *domain.ObjectDetails, error)
func (*Commands) AddSecondFactorToLoginPolicy ¶
func (c *Commands) AddSecondFactorToLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (domain.SecondFactorType, *domain.ObjectDetails, error)
func (*Commands) AddUserGrant ¶
func (*Commands) AddUserMachineKey ¶
func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)
func (*Commands) AddUserToken ¶
func (*Commands) BulkAddProjectRole ¶
func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, projectRoles []*domain.ProjectRole) (details *domain.ObjectDetails, err error)
func (*Commands) BulkAddedUserIDPLinks ¶
func (*Commands) BulkRemoveUserGrant ¶
func (*Commands) BulkRemoveUserMetadata ¶
func (*Commands) BulkSetUserMetadata ¶
func (*Commands) ChangeAPIApplication ¶
func (*Commands) ChangeAPIApplicationSecret ¶
func (*Commands) ChangeAction ¶
func (*Commands) ChangeApplication ¶
func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, resourceOwner string) (*domain.ObjectDetails, error)
func (*Commands) ChangeDefaultIDPConfig ¶
func (*Commands) ChangeDefaultIDPJWTConfig ¶
func (c *Commands) ChangeDefaultIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig) (*domain.JWTIDPConfig, error)
func (*Commands) ChangeDefaultIDPOIDCConfig ¶
func (c *Commands) ChangeDefaultIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig) (*domain.OIDCIDPConfig, error)
func (*Commands) ChangeDefaultLabelPolicy ¶
func (c *Commands) ChangeDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) ChangeDefaultLockoutPolicy ¶
func (c *Commands) ChangeDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) ChangeDefaultLoginPolicy ¶
func (c *Commands) ChangeDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) ChangeDefaultMailTemplate ¶
func (c *Commands) ChangeDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) ChangeDefaultOrgIAMPolicy ¶
func (c *Commands) ChangeDefaultOrgIAMPolicy(ctx context.Context, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
func (*Commands) ChangeDefaultPasswordAgePolicy ¶
func (c *Commands) ChangeDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) ChangeDefaultPasswordComplexityPolicy ¶
func (c *Commands) ChangeDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) ChangeDefaultPrivacyPolicy ¶
func (c *Commands) ChangeDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) ChangeHumanAddress ¶
func (*Commands) ChangeHumanEmail ¶
func (*Commands) ChangeHumanPhone ¶
func (*Commands) ChangeHumanProfile ¶
func (*Commands) ChangeIAMMember ¶
func (c *Commands) ChangeIAMMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
ChangeIAMMember updates an existing member
func (*Commands) ChangeIDPConfig ¶
func (*Commands) ChangeIDPJWTConfig ¶
func (c *Commands) ChangeIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig, resourceOwner string) (*domain.JWTIDPConfig, error)
func (*Commands) ChangeIDPOIDCConfig ¶
func (c *Commands) ChangeIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig, resourceOwner string) (*domain.OIDCIDPConfig, error)
func (*Commands) ChangeLabelPolicy ¶
func (c *Commands) ChangeLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) ChangeLockoutPolicy ¶
func (c *Commands) ChangeLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) ChangeLoginPolicy ¶
func (c *Commands) ChangeLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) ChangeMachine ¶
func (*Commands) ChangeMailTemplate ¶
func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) ChangeOIDCApplication ¶
func (*Commands) ChangeOIDCApplicationSecret ¶
func (*Commands) ChangeOrgIAMPolicy ¶
func (c *Commands) ChangeOrgIAMPolicy(ctx context.Context, resourceOwner string, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)
func (*Commands) ChangeOrgMember ¶
func (c *Commands) ChangeOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
ChangeOrgMember updates an existing member
func (*Commands) ChangePassword ¶
func (*Commands) ChangePasswordAgePolicy ¶
func (c *Commands) ChangePasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) ChangePasswordComplexityPolicy ¶
func (c *Commands) ChangePasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) ChangePrivacyPolicy ¶
func (c *Commands) ChangePrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) ChangeProject ¶
func (*Commands) ChangeProjectGrant ¶
func (c *Commands) ChangeProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string, cascadeUserGrantIDs ...string) (_ *domain.ProjectGrant, err error)
func (*Commands) ChangeProjectGrantMember ¶
func (c *Commands) ChangeProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
ChangeProjectGrantMember updates an existing member
func (*Commands) ChangeProjectMember ¶
func (c *Commands) ChangeProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
ChangeProjectMember updates an existing member
func (*Commands) ChangeProjectRole ¶
func (c *Commands) ChangeProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
func (*Commands) ChangeUserGrant ¶
func (*Commands) ChangeUsername ¶
func (*Commands) CreateHumanEmailVerificationCode ¶
func (*Commands) CreateHumanPhoneVerificationCode ¶
func (*Commands) DeactivateAction ¶
func (*Commands) DeactivateApplication ¶
func (*Commands) DeactivateDefaultIDPConfig ¶
func (*Commands) DeactivateIDPConfig ¶
func (*Commands) DeactivateOrg ¶
func (*Commands) DeactivateProject ¶
func (*Commands) DeactivateProjectGrant ¶
func (*Commands) DeactivateUser ¶
func (*Commands) DeactivateUserGrant ¶
func (*Commands) DeleteAction ¶
func (*Commands) ExecuteSetupSteps ¶
func (*Commands) GenerateOrgDomainValidation ¶
func (*Commands) GenerateSigningKeyPair ¶
func (*Commands) HumanAddPasswordlessInitCode ¶
func (*Commands) HumanAddPasswordlessSetup ¶
func (c *Commands) HumanAddPasswordlessSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool, authenticatorPlatform domain.AuthenticatorAttachment) (*domain.WebAuthNToken, error)
func (*Commands) HumanAddPasswordlessSetupInitCode ¶
func (c *Commands) HumanAddPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, codeID, verificationCode string, preferredPlatformType domain.AuthenticatorAttachment) (*domain.WebAuthNToken, error)
func (*Commands) HumanAddU2FSetup ¶
func (*Commands) HumanBeginPasswordlessLogin ¶
func (c *Commands) HumanBeginPasswordlessLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)
func (*Commands) HumanBeginU2FLogin ¶
func (c *Commands) HumanBeginU2FLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)
func (*Commands) HumanCheckMFAOTP ¶
func (*Commands) HumanCheckMFAOTPSetup ¶
func (*Commands) HumanCheckPassword ¶
func (c *Commands) HumanCheckPassword(ctx context.Context, orgID, userID, password string, authRequest *domain.AuthRequest, lockoutPolicy *domain.LockoutPolicy) (err error)
func (*Commands) HumanEmailVerificationCodeSent ¶
func (*Commands) HumanFinishPasswordlessLogin ¶
func (*Commands) HumanFinishU2FLogin ¶
func (*Commands) HumanHumanPasswordlessSetup ¶
func (*Commands) HumanInitCodeSent ¶
func (*Commands) HumanPasswordlessInitCodeSent ¶
func (*Commands) HumanPasswordlessSetupInitCode ¶
func (*Commands) HumanPhoneVerificationCodeSent ¶
func (*Commands) HumanRemoveOTP ¶
func (*Commands) HumanRemovePasswordless ¶
func (*Commands) HumanRemoveU2F ¶
func (*Commands) HumanSendPasswordlessInitCode ¶
func (*Commands) HumanSkipMFAInit ¶
func (*Commands) HumanVerifyInitCode ¶
func (*Commands) HumanVerifyU2FSetup ¶
func (*Commands) HumansSignOut ¶
func (*Commands) ImportHuman ¶
func (*Commands) PasswordCodeSent ¶
func (*Commands) ReactivateAction ¶
func (*Commands) ReactivateApplication ¶
func (*Commands) ReactivateDefaultIDPConfig ¶
func (*Commands) ReactivateIDPConfig ¶
func (*Commands) ReactivateOrg ¶
func (*Commands) ReactivateProject ¶
func (*Commands) ReactivateProjectGrant ¶
func (*Commands) ReactivateUser ¶
func (*Commands) ReactivateUserGrant ¶
func (*Commands) RegisterHuman ¶
func (*Commands) RemoveApplication ¶
func (*Commands) RemoveApplicationKey ¶
func (*Commands) RemoveAsset ¶
func (*Commands) RemoveAssetsFolder ¶
func (*Commands) RemoveCustomIAMLoginTexts ¶
func (*Commands) RemoveDefaultIDPConfig ¶
func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, externalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveFontDefaultLabelPolicy ¶
func (*Commands) RemoveFontLabelPolicy ¶
func (*Commands) RemoveHumanAvatar ¶
func (*Commands) RemoveHumanPhone ¶
func (*Commands) RemoveIAMMember ¶
func (*Commands) RemoveIAMMessageTexts ¶
func (*Commands) RemoveIDPConfig ¶
func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIDPProviderFromDefaultLoginPolicy ¶
func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIDPProviderFromLoginPolicy ¶
func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIconDarkDefaultLabelPolicy ¶
func (*Commands) RemoveIconDarkLabelPolicy ¶
func (*Commands) RemoveIconDefaultLabelPolicy ¶
func (*Commands) RemoveIconLabelPolicy ¶
func (*Commands) RemoveLabelPolicy ¶
func (*Commands) RemoveLockoutPolicy ¶
func (*Commands) RemoveLoginPolicy ¶
func (*Commands) RemoveLogoDarkDefaultLabelPolicy ¶
func (*Commands) RemoveLogoDarkLabelPolicy ¶
func (*Commands) RemoveLogoDefaultLabelPolicy ¶
func (*Commands) RemoveLogoLabelPolicy ¶
func (*Commands) RemoveMailTemplate ¶
func (*Commands) RemoveMultiFactorFromDefaultLoginPolicy ¶
func (c *Commands) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (*domain.ObjectDetails, error)
func (*Commands) RemoveMultiFactorFromLoginPolicy ¶
func (c *Commands) RemoveMultiFactorFromLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (*domain.ObjectDetails, error)
func (*Commands) RemoveOrgDomain ¶
func (*Commands) RemoveOrgFeatures ¶
func (*Commands) RemoveOrgIAMPolicy ¶
func (*Commands) RemoveOrgLoginTexts ¶
func (*Commands) RemoveOrgMember ¶
func (*Commands) RemoveOrgMessageTexts ¶
func (*Commands) RemovePasswordAgePolicy ¶
func (*Commands) RemovePasswordComplexityPolicy ¶
func (*Commands) RemovePersonalAccessToken ¶
func (*Commands) RemovePrivacyPolicy ¶
func (*Commands) RemoveProject ¶
func (*Commands) RemoveProjectGrant ¶
func (*Commands) RemoveProjectGrantMember ¶
func (*Commands) RemoveProjectMember ¶
func (*Commands) RemoveProjectRole ¶
func (*Commands) RemoveSecondFactorFromDefaultLoginPolicy ¶
func (c *Commands) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (*domain.ObjectDetails, error)
func (*Commands) RemoveSecondFactorFromLoginPolicy ¶
func (c *Commands) RemoveSecondFactorFromLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (*domain.ObjectDetails, error)
func (*Commands) RemoveUser ¶
func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, cascadingUserMemberships []*query.Membership, cascadingGrantIDs ...string) (*domain.ObjectDetails, error)
func (*Commands) RemoveUserGrant ¶
func (*Commands) RemoveUserIDPLink ¶
func (c *Commands) RemoveUserIDPLink(ctx context.Context, link *domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveUserMachineKey ¶
func (*Commands) RemoveUserMetadata ¶
func (*Commands) RenewRefreshTokenAndAccessToken ¶
func (*Commands) RequestSetPassword ¶
func (c *Commands) RequestSetPassword(ctx context.Context, userID, resourceOwner string, notifyType domain.NotificationType) (objectDetails *domain.ObjectDetails, err error)
func (*Commands) ResendInitialMail ¶
func (c *Commands) ResendInitialMail(ctx context.Context, userID, email, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
ResendInitialMail resend inital mail and changes email if provided
func (*Commands) RevokeAccessToken ¶
func (*Commands) RevokeRefreshToken ¶
func (*Commands) RevokeRefreshTokens ¶
func (*Commands) SetCustomIAMLoginText ¶
func (c *Commands) SetCustomIAMLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
func (*Commands) SetDefaultFeatures ¶
func (*Commands) SetDefaultMessageText ¶
func (c *Commands) SetDefaultMessageText(ctx context.Context, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
func (*Commands) SetIAMCustomText ¶
func (c *Commands) SetIAMCustomText(ctx context.Context, customText *domain.CustomText) (*domain.CustomText, error)
func (*Commands) SetOrgFeatures ¶
func (*Commands) SetOrgLoginText ¶
func (c *Commands) SetOrgLoginText(ctx context.Context, resourceOwner string, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
func (*Commands) SetOrgMessageText ¶
func (c *Commands) SetOrgMessageText(ctx context.Context, resourceOwner string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
func (*Commands) SetPassword ¶
func (*Commands) SetPasswordWithVerifyCode ¶
func (*Commands) SetPrimaryOrgDomain ¶
func (*Commands) SetTriggerActions ¶
func (*Commands) SetUserMetadata ¶
func (*Commands) SetupStep1 ¶
func (*Commands) SetupStep10 ¶
func (*Commands) SetupStep11 ¶
func (*Commands) SetupStep12 ¶
func (*Commands) SetupStep13 ¶
func (*Commands) SetupStep14 ¶
func (*Commands) SetupStep15 ¶
func (*Commands) SetupStep16 ¶
func (*Commands) SetupStep17 ¶
func (*Commands) SetupStep18 ¶
func (*Commands) SetupStep19 ¶
func (*Commands) SetupStep20 ¶
func (*Commands) SetupStep21 ¶
func (*Commands) SetupStep22 ¶
func (*Commands) SetupStep4 ¶
This step should not be executed when a new instance is setup, because its not used anymore SetupStep4 is no op in favour of step 18. Password lockout policy is replaced by lockout policy
func (*Commands) StartSetup ¶
func (*Commands) UnlockUser ¶
func (*Commands) UploadAsset ¶
func (*Commands) UserDomainClaimedSent ¶
func (*Commands) UserIDPLoginChecked ¶
func (*Commands) ValidateOrgDomain ¶
func (*Commands) VerifyAPIClientSecret ¶
func (*Commands) VerifyHumanEmail ¶
func (*Commands) VerifyHumanPhone ¶
type CustomLoginTextReadModel ¶
type CustomLoginTextReadModel struct { eventstore.WriteModel Language language.Tag State domain.PolicyState SelectAccountTitle string SelectAccountDescription string SelectAccountTitleLinkingProcess string SelectAccountDescriptionLinkingProcess string SelectAccountOtherUser string SelectAccountSessionStateActive string SelectAccountSessionStateInactive string SelectAccountUserMustBeMemberOfOrg string LoginTitle string LoginDescription string LoginTitleLinkingProcess string LoginDescriptionLinkingProcess string LoginNameLabel string LoginUsernamePlaceholder string LoginLoginnamePlaceholder string LoginRegisterButtonText string LoginNextButtonText string LoginExternalUserDescription string LoginUserMustBeMemberOfOrg string PasswordTitle string PasswordDescription string PasswordLabel string PasswordResetLinkText string PasswordBackButtonText string PasswordNextButtonText string PasswordMinLength string PasswordHasUppercase string PasswordHasLowercase string PasswordHasNumber string PasswordHasSymbol string PasswordConfirmation string UsernameChangeTitle string UsernameChangeDescription string UsernameChangeUsernameLabel string UsernameChangeCancelButtonText string UsernameChangeNextButtonText string UsernameChangeDoneTitle string UsernameChangeDoneDescription string UsernameChangeDoneNextButtonText string InitPasswordTitle string InitPasswordDescription string InitPasswordCodeLabel string InitPasswordNewPasswordLabel string InitPasswordNewPasswordConfirmLabel string InitPasswordNextButtonText string InitPasswordResendButtonText string InitPasswordDoneTitle string InitPasswordDoneDescription string InitPasswordDoneNextButtonText string InitPasswordDoneCancelButtonText string EmailVerificationTitle string EmailVerificationDescription string EmailVerificationCodeLabel string EmailVerificationNextButtonText string EmailVerificationResendButtonText string EmailVerificationDoneTitle string EmailVerificationDoneDescription string EmailVerificationDoneNextButtonText string EmailVerificationDoneCancelButtonText string EmailVerificationDoneLoginButtonText string InitializeTitle string InitializeDescription string InitializeCodeLabel string InitializeNewPassword string InitializeNewPasswordConfirm string InitializeResendButtonText string InitializeNextButtonText string InitializeDoneTitle string InitializeDoneDescription string InitializeDoneAbortButtonText string InitializeDoneNextButtonText string InitMFAPromptTitle string InitMFAPromptDescription string InitMFAPromptOTPOption string InitMFAPromptU2FOption string InitMFAPromptSkipButtonText string InitMFAPromptNextButtonText string InitMFAOTPTitle string InitMFAOTPDescription string InitMFAOTPDescriptionOTP string InitMFAOTPSecretLabel string InitMFAOTPCodeLabel string InitMFAOTPNextButtonText string InitMFAOTPCancelButtonText string InitMFAU2FTitle string InitMFAU2FDescription string InitMFAU2FTokenNameLabel string InitMFAU2FRegisterTokenButtonText string InitMFAU2FNotSupported string InitMFAU2FErrorRetry string InitMFADoneTitle string InitMFADoneDescription string InitMFADoneAbortButtonText string InitMFADoneNextButtonText string MFAProvidersChooseOther string MFAProvidersOTP string MFAProvidersU2F string VerifyMFAOTPTitle string VerifyMFAOTPDescription string VerifyMFAOTPCodeLabel string VerifyMFAOTPNextButtonText string VerifyMFAU2FTitle string VerifyMFAU2FDescription string VerifyMFAU2FValidateTokenText string VerifyMFAU2FNotSupported string VerifyMFAU2FErrorRetry string PasswordlessTitle string PasswordlessDescription string PasswordlessLoginWithPwButtonText string PasswordlessValidateTokenButtonText string PasswordlessNotSupported string PasswordlessErrorRetry string PasswordlessPromptTitle string PasswordlessPromptDescription string PasswordlessPromptDescriptionInit string PasswordlessPromptPasswordlessButtonText string PasswordlessPromptNextButtonText string PasswordlessPromptSkipButtonText string PasswordlessRegistrationTitle string PasswordlessRegistrationDescription string PasswordlessRegistrationRegisterTokenButtonText string PasswordlessRegistrationTokenNameLabel string PasswordlessRegistrationNotSupported string PasswordlessRegistrationErrorRetry string PasswordlessRegistrationDoneTitle string PasswordlessRegistrationDoneDescription string PasswordlessRegistrationDoneDescriptionClose string PasswordlessRegistrationDoneNextButtonText string PasswordlessRegistrationDoneCancelButtonText string PasswordChangeTitle string PasswordChangeDescription string PasswordChangeOldPasswordLabel string PasswordChangeNewPasswordLabel string PasswordChangeNewPasswordConfirmLabel string PasswordChangeCancelButtonText string PasswordChangeNextButtonText string PasswordChangeDoneTitle string PasswordChangeDoneDescription string PasswordChangeDoneNextButtonText string PasswordResetDoneTitle string PasswordResetDoneDescription string PasswordResetDoneNextButtonText string RegistrationOptionTitle string RegistrationOptionDescription string RegistrationOptionUserNameButtonText string RegistrationOptionExternalLoginDescription string RegistrationUserTitle string RegistrationUserDescription string RegistrationUserDescriptionOrgRegister string RegistrationUserFirstnameLabel string RegistrationUserLastnameLabel string RegistrationUserEmailLabel string RegistrationUserUsernameLabel string RegistrationUserLanguageLabel string RegistrationUserGenderLabel string RegistrationUserPasswordLabel string RegistrationUserPasswordConfirmLabel string RegistrationUserTOSAndPrivacyLabel string RegistrationUserTOSConfirm string RegistrationUserTOSLink string RegistrationUserTOSLinkText string RegistrationUserTOSConfirmAnd string RegistrationUserPrivacyLink string RegistrationUserPrivacyLinkText string RegistrationUserNextButtonText string RegistrationUserBackButtonText string ExternalRegistrationUserOverviewTitle string ExternalRegistrationUserOverviewDescription string ExternalRegistrationUserOverviewEmailLabel string ExternalRegistrationUserOverviewUsernameLabel string ExternalRegistrationUserOverviewFirstnameLabel string ExternalRegistrationUserOverviewLastnameLabel string ExternalRegistrationUserOverviewNicknameLabel string ExternalRegistrationUserOverviewLanguageLabel string ExternalRegistrationUserOverviewPhoneLabel string ExternalRegistrationUserOverviewTOSAndPrivacyLabel string ExternalRegistrationUserOverviewTOSConfirm string ExternalRegistrationUserOverviewTOSLink string ExternalRegistrationUserOverviewTOSLinkText string ExternalRegistrationUserOverviewTOSConfirmAnd string ExternalRegistrationUserOverviewPrivacyLink string ExternalRegistrationUserOverviewPrivacyLinkText string ExternalRegistrationUserOverviewBackButtonText string ExternalRegistrationUserOverviewNextButtonText string RegisterOrgTitle string RegisterOrgDescription string RegisterOrgOrgNameLabel string RegisterOrgFirstnameLabel string RegisterOrgLastnameLabel string RegisterOrgUsernameLabel string RegisterOrgEmailLabel string RegisterOrgPasswordLabel string RegisterOrgPasswordConfirmLabel string RegisterOrgTOSAndPrivacyLabel string RegisterOrgTOSConfirm string RegisterOrgTOSLinkText string RegisterOrgTOSConfirmAnd string RegisterOrgPrivacyLinkText string RegisterOrgSaveButtonText string LinkingUserDoneTitle string LinkingUserDoneDescription string LinkingUserDoneCancelButtonText string LinkingUserDoneNextButtonText string ExternalUserNotFoundTitle string ExternalUserNotFoundDescription string ExternalUserNotFoundLinkButtonText string ExternalUserNotFoundAutoRegisterButtonText string ExternalUserNotFoundTOSAndPrivacyLabel string ExternalUserNotFoundTOSConfirm string ExternalUserNotFoundTOSLinkText string ExternalUserNotFoundTOSConfirmAnd string ExternalUserNotFoundPrivacyLinkText string SuccessLoginTitle string SuccessLoginAutoRedirectDescription string SuccessLoginRedirectedDescription string SuccessLoginNextButtonText string LogoutDoneTitle string LogoutDoneDescription string LogoutDoneLoginButtonText string }
func (*CustomLoginTextReadModel) Reduce ¶
func (wm *CustomLoginTextReadModel) Reduce() error
type CustomLoginTextsReadModel ¶
type CustomLoginTextsReadModel struct { eventstore.WriteModel CustomLoginTexts map[string]*CustomText }
func (*CustomLoginTextsReadModel) Reduce ¶
func (wm *CustomLoginTextsReadModel) Reduce() error
type CustomMessageTemplatesReadModel ¶
type CustomMessageTemplatesReadModel struct { eventstore.WriteModel CustomMessageTemplate map[string]*CustomText }
func (*CustomMessageTemplatesReadModel) Reduce ¶
func (wm *CustomMessageTemplatesReadModel) Reduce() error
type CustomMessageTextReadModel ¶
type CustomMessageTextReadModel struct { eventstore.WriteModel MessageTextType string Language language.Tag Title string PreHeader string Subject string Greeting string Text string ButtonText string State domain.PolicyState }
func (*CustomMessageTextReadModel) Reduce ¶
func (wm *CustomMessageTextReadModel) Reduce() error
type CustomText ¶
type CustomTextWriteModel ¶
type CustomTextWriteModel struct { eventstore.WriteModel Key string Language language.Tag Text string State domain.CustomTextState }
func (*CustomTextWriteModel) Reduce ¶
func (wm *CustomTextWriteModel) Reduce() error
type ExistingLabelPoliciesReadModel ¶
type ExistingLabelPoliciesReadModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func NewExistingLabelPoliciesReadModel ¶
func NewExistingLabelPoliciesReadModel(ctx context.Context) *ExistingLabelPoliciesReadModel
func (*ExistingLabelPoliciesReadModel) AppendEvents ¶
func (rm *ExistingLabelPoliciesReadModel) AppendEvents(events ...eventstore.Event)
func (*ExistingLabelPoliciesReadModel) Query ¶
func (rm *ExistingLabelPoliciesReadModel) Query() *eventstore.SearchQueryBuilder
func (*ExistingLabelPoliciesReadModel) Reduce ¶
func (rm *ExistingLabelPoliciesReadModel) Reduce() error
type FeaturesWriteModel ¶
type FeaturesWriteModel struct { eventstore.WriteModel TierName string TierDescription string State domain.FeaturesState StateDescription string AuditLogRetention time.Duration LoginPolicyFactors bool LoginPolicyIDP bool LoginPolicyPasswordless bool LoginPolicyRegistration bool LoginPolicyUsernameLogin bool LoginPolicyPasswordReset bool PasswordComplexityPolicy bool LabelPolicyPrivateLabel bool LabelPolicyWatermark bool CustomDomain bool PrivacyPolicy bool MetadataUser bool CustomTextMessage bool CustomTextLogin bool LockoutPolicy bool ActionsAllowed domain.ActionsAllowed MaxActions int }
func (*FeaturesWriteModel) Reduce ¶
func (wm *FeaturesWriteModel) Reduce() error
type FlowWriteModel ¶
type FlowWriteModel struct { eventstore.WriteModel FlowType domain.FlowType State domain.FlowState Triggers map[domain.TriggerType][]string }
func NewFlowWriteModel ¶
func NewFlowWriteModel(flowType domain.FlowType, resourceOwner string) *FlowWriteModel
func (*FlowWriteModel) Reduce ¶
func (wm *FlowWriteModel) Reduce() error
type HumanAddressWriteModel ¶
type HumanAddressWriteModel struct { eventstore.WriteModel Country string Locality string PostalCode string Region string StreetAddress string State domain.AddressState }
func NewHumanAddressWriteModel ¶
func NewHumanAddressWriteModel(userID, resourceOwner string) *HumanAddressWriteModel
func (*HumanAddressWriteModel) NewChangedEvent ¶
func (wm *HumanAddressWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, country, locality, postalCode, region, streetAddress string, ) (*user.HumanAddressChangedEvent, bool, error)
func (*HumanAddressWriteModel) Query ¶
func (wm *HumanAddressWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanAddressWriteModel) Reduce ¶
func (wm *HumanAddressWriteModel) Reduce() error
type HumanEmailWriteModel ¶
type HumanEmailWriteModel struct { eventstore.WriteModel Email string IsEmailVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration UserState domain.UserState }
func NewHumanEmailWriteModel ¶
func NewHumanEmailWriteModel(userID, resourceOwner string) *HumanEmailWriteModel
func (*HumanEmailWriteModel) NewChangedEvent ¶
func (wm *HumanEmailWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, email string, ) (*user.HumanEmailChangedEvent, bool)
func (*HumanEmailWriteModel) Query ¶
func (wm *HumanEmailWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanEmailWriteModel) Reduce ¶
func (wm *HumanEmailWriteModel) Reduce() error
type HumanInitCodeWriteModel ¶
type HumanInitCodeWriteModel struct { eventstore.WriteModel Email string IsEmailVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration UserState domain.UserState }
func NewHumanInitCodeWriteModel ¶
func NewHumanInitCodeWriteModel(userID, resourceOwner string) *HumanInitCodeWriteModel
func (*HumanInitCodeWriteModel) NewChangedEvent ¶
func (wm *HumanInitCodeWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, email string, ) (*user.HumanEmailChangedEvent, bool)
func (*HumanInitCodeWriteModel) Query ¶
func (wm *HumanInitCodeWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanInitCodeWriteModel) Reduce ¶
func (wm *HumanInitCodeWriteModel) Reduce() error
type HumanOTPWriteModel ¶
type HumanOTPWriteModel struct { eventstore.WriteModel State domain.MFAState Secret *crypto.CryptoValue }
func NewHumanOTPWriteModel ¶
func NewHumanOTPWriteModel(userID, resourceOwner string) *HumanOTPWriteModel
func (*HumanOTPWriteModel) Query ¶
func (wm *HumanOTPWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanOTPWriteModel) Reduce ¶
func (wm *HumanOTPWriteModel) Reduce() error
type HumanPasswordWriteModel ¶
type HumanPasswordWriteModel struct { eventstore.WriteModel Secret *crypto.CryptoValue SecretChangeRequired bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration PasswordCheckFailedCount uint64 UserState domain.UserState }
func NewHumanPasswordWriteModel ¶
func NewHumanPasswordWriteModel(userID, resourceOwner string) *HumanPasswordWriteModel
func (*HumanPasswordWriteModel) Query ¶
func (wm *HumanPasswordWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordWriteModel) Reduce ¶
func (wm *HumanPasswordWriteModel) Reduce() error
type HumanPasswordlessInitCodeWriteModel ¶
type HumanPasswordlessInitCodeWriteModel struct { eventstore.WriteModel CodeID string Attempts uint8 CryptoCode *crypto.CryptoValue Expiration time.Duration State domain.PasswordlessInitCodeState }
func NewHumanPasswordlessInitCodeWriteModel ¶
func NewHumanPasswordlessInitCodeWriteModel(userID, codeID, resourceOwner string) *HumanPasswordlessInitCodeWriteModel
func (*HumanPasswordlessInitCodeWriteModel) AppendEvents ¶
func (wm *HumanPasswordlessInitCodeWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessInitCodeWriteModel) Query ¶
func (wm *HumanPasswordlessInitCodeWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessInitCodeWriteModel) Reduce ¶
func (wm *HumanPasswordlessInitCodeWriteModel) Reduce() error
type HumanPasswordlessLoginReadModel ¶
type HumanPasswordlessLoginReadModel struct { eventstore.WriteModel AuthReqID string Challenge string AllowedCredentialIDs [][]byte UserVerification domain.UserVerificationRequirement State domain.UserState }
func NewHumanPasswordlessLoginReadModel ¶
func NewHumanPasswordlessLoginReadModel(userID, authReqID, resourceOwner string) *HumanPasswordlessLoginReadModel
func (*HumanPasswordlessLoginReadModel) AppendEvents ¶
func (wm *HumanPasswordlessLoginReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessLoginReadModel) Query ¶
func (rm *HumanPasswordlessLoginReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessLoginReadModel) Reduce ¶
func (wm *HumanPasswordlessLoginReadModel) Reduce() error
type HumanPasswordlessTokensReadModel ¶
type HumanPasswordlessTokensReadModel struct { eventstore.WriteModel WebAuthNTokens []*HumanWebAuthNWriteModel UserState domain.UserState }
func NewHumanPasswordlessTokensReadModel ¶
func NewHumanPasswordlessTokensReadModel(userID, resourceOwner string) *HumanPasswordlessTokensReadModel
func (*HumanPasswordlessTokensReadModel) AppendEvents ¶
func (wm *HumanPasswordlessTokensReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessTokensReadModel) Query ¶
func (rm *HumanPasswordlessTokensReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessTokensReadModel) Reduce ¶
func (wm *HumanPasswordlessTokensReadModel) Reduce() error
func (*HumanPasswordlessTokensReadModel) WebAuthNTokenByID ¶
func (wm *HumanPasswordlessTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
type HumanPhoneWriteModel ¶
type HumanPhoneWriteModel struct { eventstore.WriteModel Phone string IsPhoneVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration State domain.PhoneState UserState domain.UserState }
func NewHumanPhoneWriteModel ¶
func NewHumanPhoneWriteModel(userID, resourceOwner string) *HumanPhoneWriteModel
func (*HumanPhoneWriteModel) NewChangedEvent ¶
func (wm *HumanPhoneWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, phone string, ) (*user.HumanPhoneChangedEvent, bool)
func (*HumanPhoneWriteModel) Query ¶
func (wm *HumanPhoneWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPhoneWriteModel) Reduce ¶
func (wm *HumanPhoneWriteModel) Reduce() error
type HumanProfileWriteModel ¶
type HumanProfileWriteModel struct { eventstore.WriteModel FirstName string LastName string NickName string DisplayName string PreferredLanguage language.Tag Gender domain.Gender UserState domain.UserState }
func NewHumanProfileWriteModel ¶
func NewHumanProfileWriteModel(userID, resourceOwner string) *HumanProfileWriteModel
func (*HumanProfileWriteModel) NewChangedEvent ¶
func (wm *HumanProfileWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, firstName, lastName, nickName, displayName string, preferredLanguage language.Tag, gender domain.Gender, ) (*user.HumanProfileChangedEvent, bool, error)
func (*HumanProfileWriteModel) Query ¶
func (wm *HumanProfileWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanProfileWriteModel) Reduce ¶
func (wm *HumanProfileWriteModel) Reduce() error
type HumanRefreshTokenWriteModel ¶
type HumanRefreshTokenWriteModel struct { eventstore.WriteModel TokenID string RefreshToken string UserState domain.UserState IdleExpiration time.Time Expiration time.Time }
func NewHumanRefreshTokenWriteModel ¶
func NewHumanRefreshTokenWriteModel(userID, resourceOwner, tokenID string) *HumanRefreshTokenWriteModel
func (*HumanRefreshTokenWriteModel) AppendEvents ¶
func (wm *HumanRefreshTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanRefreshTokenWriteModel) Query ¶
func (wm *HumanRefreshTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanRefreshTokenWriteModel) Reduce ¶
func (wm *HumanRefreshTokenWriteModel) Reduce() error
type HumanU2FLoginReadModel ¶
type HumanU2FLoginReadModel struct { eventstore.WriteModel AuthReqID string Challenge string AllowedCredentialIDs [][]byte UserVerification domain.UserVerificationRequirement User State domain.UserState }
func NewHumanU2FLoginReadModel ¶
func NewHumanU2FLoginReadModel(userID, authReqID, resourceOwner string) *HumanU2FLoginReadModel
func (*HumanU2FLoginReadModel) AppendEvents ¶
func (wm *HumanU2FLoginReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanU2FLoginReadModel) Query ¶
func (rm *HumanU2FLoginReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanU2FLoginReadModel) Reduce ¶
func (wm *HumanU2FLoginReadModel) Reduce() error
type HumanU2FTokensReadModel ¶
type HumanU2FTokensReadModel struct { eventstore.WriteModel WebAuthNTokens []*HumanWebAuthNWriteModel UserState domain.UserState }
func NewHumanU2FTokensReadModel ¶
func NewHumanU2FTokensReadModel(userID, resourceOwner string) *HumanU2FTokensReadModel
func (*HumanU2FTokensReadModel) AppendEvents ¶
func (wm *HumanU2FTokensReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanU2FTokensReadModel) Query ¶
func (rm *HumanU2FTokensReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanU2FTokensReadModel) Reduce ¶
func (wm *HumanU2FTokensReadModel) Reduce() error
func (*HumanU2FTokensReadModel) WebAuthNTokenByID ¶
func (wm *HumanU2FTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
type HumanWebAuthNWriteModel ¶
type HumanWebAuthNWriteModel struct { eventstore.WriteModel WebauthNTokenID string Challenge string KeyID []byte PublicKey []byte AttestationType string AAGUID []byte SignCount uint32 WebAuthNTokenName string State domain.MFAState }
func NewHumanWebAuthNWriteModel ¶
func NewHumanWebAuthNWriteModel(userID, webAuthNTokenID, resourceOwner string) *HumanWebAuthNWriteModel
func (*HumanWebAuthNWriteModel) AppendEvents ¶
func (wm *HumanWebAuthNWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanWebAuthNWriteModel) Query ¶
func (wm *HumanWebAuthNWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanWebAuthNWriteModel) Reduce ¶
func (wm *HumanWebAuthNWriteModel) Reduce() error
type HumanWriteModel ¶
type HumanWriteModel struct { eventstore.WriteModel UserName string FirstName string LastName string NickName string DisplayName string PreferredLanguage language.Tag Gender domain.Gender Avatar string Email string IsEmailVerified bool Phone string IsPhoneVerified bool Country string Locality string PostalCode string Region string StreetAddress string Secret *crypto.CryptoValue SecretChangeRequired bool UserState domain.UserState }
func NewHumanWriteModel ¶
func NewHumanWriteModel(userID, resourceOwner string) *HumanWriteModel
func (*HumanWriteModel) Query ¶
func (wm *HumanWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanWriteModel) Reduce ¶
func (wm *HumanWriteModel) Reduce() error
type IAMCustomLoginTextReadModel ¶
type IAMCustomLoginTextReadModel struct {
CustomLoginTextReadModel
}
func NewIAMCustomLoginTextReadModel ¶
func NewIAMCustomLoginTextReadModel(lang language.Tag) *IAMCustomLoginTextReadModel
func (*IAMCustomLoginTextReadModel) AppendEvents ¶
func (wm *IAMCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)
func (*IAMCustomLoginTextReadModel) Query ¶
func (wm *IAMCustomLoginTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*IAMCustomLoginTextReadModel) Reduce ¶
func (wm *IAMCustomLoginTextReadModel) Reduce() error
type IAMCustomMessageTextReadModel ¶
type IAMCustomMessageTextReadModel struct {
CustomMessageTextReadModel
}
func NewIAMCustomMessageTextWriteModel ¶
func NewIAMCustomMessageTextWriteModel(messageTextType string, lang language.Tag) *IAMCustomMessageTextReadModel
func (*IAMCustomMessageTextReadModel) AppendEvents ¶
func (wm *IAMCustomMessageTextReadModel) AppendEvents(events ...eventstore.Event)
func (*IAMCustomMessageTextReadModel) Query ¶
func (wm *IAMCustomMessageTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*IAMCustomMessageTextReadModel) Reduce ¶
func (wm *IAMCustomMessageTextReadModel) Reduce() error
type IAMCustomTextWriteModel ¶
type IAMCustomTextWriteModel struct {
CustomTextWriteModel
}
func NewIAMCustomTextWriteModel ¶
func NewIAMCustomTextWriteModel(key string, language language.Tag) *IAMCustomTextWriteModel
func (*IAMCustomTextWriteModel) AppendEvents ¶
func (wm *IAMCustomTextWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMCustomTextWriteModel) Query ¶
func (wm *IAMCustomTextWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMCustomTextWriteModel) Reduce ¶
func (wm *IAMCustomTextWriteModel) Reduce() error
type IAMFeaturesWriteModel ¶
type IAMFeaturesWriteModel struct {
FeaturesWriteModel
}
func NewIAMFeaturesWriteModel ¶
func NewIAMFeaturesWriteModel() *IAMFeaturesWriteModel
func (*IAMFeaturesWriteModel) AppendEvents ¶
func (wm *IAMFeaturesWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMFeaturesWriteModel) IsValid ¶
func (wm *IAMFeaturesWriteModel) IsValid() bool
func (*IAMFeaturesWriteModel) NewSetEvent ¶
func (wm *IAMFeaturesWriteModel) NewSetEvent( ctx context.Context, aggregate *eventstore.Aggregate, tierName, tierDescription string, state domain.FeaturesState, stateDescription string, auditLogRetention time.Duration, loginPolicyFactors, loginPolicyIDP, loginPolicyPasswordless, loginPolicyRegistration, loginPolicyUsernameLogin, loginPolicyPasswordReset, passwordComplexityPolicy, labelPolicyPrivateLabel, labelPolicyWatermark, customDomain, privacyPolicy, metadataUser, customTextMessage, customTextLogin, lockoutPolicy bool, actionsAllowed domain.ActionsAllowed, maxActions int, ) (*iam.FeaturesSetEvent, bool)
func (*IAMFeaturesWriteModel) Query ¶
func (wm *IAMFeaturesWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMFeaturesWriteModel) Reduce ¶
func (wm *IAMFeaturesWriteModel) Reduce() error
type IAMIDPConfigWriteModel ¶
type IAMIDPConfigWriteModel struct {
IDPConfigWriteModel
}
func NewIAMIDPConfigWriteModel ¶
func NewIAMIDPConfigWriteModel(configID string) *IAMIDPConfigWriteModel
func (*IAMIDPConfigWriteModel) AppendAndReduce ¶
func (wm *IAMIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
func (*IAMIDPConfigWriteModel) AppendEvents ¶
func (wm *IAMIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMIDPConfigWriteModel) NewChangedEvent ¶
func (wm *IAMIDPConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, stylingType domain.IDPConfigStylingType, autoRegister bool, ) (*iam.IDPConfigChangedEvent, bool)
func (*IAMIDPConfigWriteModel) Query ¶
func (wm *IAMIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMIDPConfigWriteModel) Reduce ¶
func (wm *IAMIDPConfigWriteModel) Reduce() error
type IAMIDPJWTConfigWriteModel ¶
type IAMIDPJWTConfigWriteModel struct {
JWTConfigWriteModel
}
func NewIAMIDPJWTConfigWriteModel ¶
func NewIAMIDPJWTConfigWriteModel(idpConfigID string) *IAMIDPJWTConfigWriteModel
func (*IAMIDPJWTConfigWriteModel) AppendEvents ¶
func (wm *IAMIDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMIDPJWTConfigWriteModel) NewChangedEvent ¶
func (wm *IAMIDPJWTConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, jwtEndpoint, issuer, keysEndpoint, headerName string, ) (*iam.IDPJWTConfigChangedEvent, bool, error)
func (*IAMIDPJWTConfigWriteModel) Query ¶
func (wm *IAMIDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMIDPJWTConfigWriteModel) Reduce ¶
func (wm *IAMIDPJWTConfigWriteModel) Reduce() error
type IAMIDPOIDCConfigWriteModel ¶
type IAMIDPOIDCConfigWriteModel struct {
OIDCConfigWriteModel
}
func NewIAMIDPOIDCConfigWriteModel ¶
func NewIAMIDPOIDCConfigWriteModel(idpConfigID string) *IAMIDPOIDCConfigWriteModel
func (*IAMIDPOIDCConfigWriteModel) AppendEvents ¶
func (wm *IAMIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMIDPOIDCConfigWriteModel) NewChangedEvent ¶
func (wm *IAMIDPOIDCConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, clientID, issuer, authorizationEndpoint, tokenEndpoint, clientSecretString string, secretCrypto crypto.Crypto, idpDisplayNameMapping, userNameMapping domain.OIDCMappingField, scopes ...string, ) (*iam.IDPOIDCConfigChangedEvent, bool, error)
func (*IAMIDPOIDCConfigWriteModel) Query ¶
func (wm *IAMIDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMIDPOIDCConfigWriteModel) Reduce ¶
func (wm *IAMIDPOIDCConfigWriteModel) Reduce() error
type IAMIdentityProviderWriteModel ¶
type IAMIdentityProviderWriteModel struct {
IdentityProviderWriteModel
}
func NewIAMIdentityProviderWriteModel ¶
func NewIAMIdentityProviderWriteModel(idpConfigID string) *IAMIdentityProviderWriteModel
func (*IAMIdentityProviderWriteModel) AppendEvents ¶
func (wm *IAMIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMIdentityProviderWriteModel) Query ¶
func (wm *IAMIdentityProviderWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMIdentityProviderWriteModel) Reduce ¶
func (wm *IAMIdentityProviderWriteModel) Reduce() error
type IAMLabelPolicyWriteModel ¶
type IAMLabelPolicyWriteModel struct {
LabelPolicyWriteModel
}
func NewIAMLabelPolicyWriteModel ¶
func NewIAMLabelPolicyWriteModel() *IAMLabelPolicyWriteModel
func (*IAMLabelPolicyWriteModel) AppendEvents ¶
func (wm *IAMLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMLabelPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMLabelPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, primaryColor, backgroundColor, warnColor, fontColor, primaryColorDark, backgroundColorDark, warnColorDark, fontColorDark string, hideLoginNameSuffix, errorMsgPopup, disableWatermark bool, ) (*iam.LabelPolicyChangedEvent, bool)
func (*IAMLabelPolicyWriteModel) Query ¶
func (wm *IAMLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMLabelPolicyWriteModel) Reduce ¶
func (wm *IAMLabelPolicyWriteModel) Reduce() error
type IAMLockoutPolicyWriteModel ¶
type IAMLockoutPolicyWriteModel struct {
LockoutPolicyWriteModel
}
func NewIAMLockoutPolicyWriteModel ¶
func NewIAMLockoutPolicyWriteModel() *IAMLockoutPolicyWriteModel
func (*IAMLockoutPolicyWriteModel) AppendEvents ¶
func (wm *IAMLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMLockoutPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMLockoutPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, showLockoutFailure bool) (*iam.LockoutPolicyChangedEvent, bool)
func (*IAMLockoutPolicyWriteModel) Query ¶
func (wm *IAMLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMLockoutPolicyWriteModel) Reduce ¶
func (wm *IAMLockoutPolicyWriteModel) Reduce() error
type IAMLoginPolicyWriteModel ¶
type IAMLoginPolicyWriteModel struct {
LoginPolicyWriteModel
}
func NewIAMLoginPolicyWriteModel ¶
func NewIAMLoginPolicyWriteModel() *IAMLoginPolicyWriteModel
func (*IAMLoginPolicyWriteModel) AppendEvents ¶
func (wm *IAMLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMLoginPolicyWriteModel) IsValid ¶
func (wm *IAMLoginPolicyWriteModel) IsValid() bool
func (*IAMLoginPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMLoginPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, allowUsernamePassword, allowRegister, allowExternalIDP, forceMFA, hidePasswordReset, ignoreUnknownUsernames bool, passwordlessType domain.PasswordlessType, ) (*iam.LoginPolicyChangedEvent, bool)
func (*IAMLoginPolicyWriteModel) Query ¶
func (wm *IAMLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMLoginPolicyWriteModel) Reduce ¶
func (wm *IAMLoginPolicyWriteModel) Reduce() error
type IAMMailTemplateWriteModel ¶
type IAMMailTemplateWriteModel struct {
MailTemplateWriteModel
}
func NewIAMMailTemplateWriteModel ¶
func NewIAMMailTemplateWriteModel() *IAMMailTemplateWriteModel
func (*IAMMailTemplateWriteModel) AppendEvents ¶
func (wm *IAMMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMMailTemplateWriteModel) NewChangedEvent ¶
func (wm *IAMMailTemplateWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, template []byte, ) (*iam.MailTemplateChangedEvent, bool)
func (*IAMMailTemplateWriteModel) Query ¶
func (wm *IAMMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMMailTemplateWriteModel) Reduce ¶
func (wm *IAMMailTemplateWriteModel) Reduce() error
type IAMMemberWriteModel ¶
type IAMMemberWriteModel struct {
MemberWriteModel
}
func NewIAMMemberWriteModel ¶
func NewIAMMemberWriteModel(userID string) *IAMMemberWriteModel
func (*IAMMemberWriteModel) AppendEvents ¶
func (wm *IAMMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMMemberWriteModel) Query ¶
func (wm *IAMMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMMemberWriteModel) Reduce ¶
func (wm *IAMMemberWriteModel) Reduce() error
type IAMMultiFactorWriteModel ¶
type IAMMultiFactorWriteModel struct {
MultiFactorWriteModel
}
func NewIAMMultiFactorWriteModel ¶
func NewIAMMultiFactorWriteModel(factorType domain.MultiFactorType) *IAMMultiFactorWriteModel
func (*IAMMultiFactorWriteModel) AppendEvents ¶
func (wm *IAMMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMMultiFactorWriteModel) Query ¶
func (wm *IAMMultiFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMMultiFactorWriteModel) Reduce ¶
func (wm *IAMMultiFactorWriteModel) Reduce() error
type IAMOrgIAMPolicyWriteModel ¶
type IAMOrgIAMPolicyWriteModel struct {
PolicyOrgIAMWriteModel
}
func NewIAMOrgIAMPolicyWriteModel ¶
func NewIAMOrgIAMPolicyWriteModel() *IAMOrgIAMPolicyWriteModel
func (*IAMOrgIAMPolicyWriteModel) AppendEvents ¶
func (wm *IAMOrgIAMPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMOrgIAMPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMOrgIAMPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, userLoginMustBeDomain bool) (*iam.OrgIAMPolicyChangedEvent, bool)
func (*IAMOrgIAMPolicyWriteModel) Query ¶
func (wm *IAMOrgIAMPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMOrgIAMPolicyWriteModel) Reduce ¶
func (wm *IAMOrgIAMPolicyWriteModel) Reduce() error
type IAMPasswordAgePolicyWriteModel ¶
type IAMPasswordAgePolicyWriteModel struct {
PasswordAgePolicyWriteModel
}
func NewIAMPasswordAgePolicyWriteModel ¶
func NewIAMPasswordAgePolicyWriteModel() *IAMPasswordAgePolicyWriteModel
func (*IAMPasswordAgePolicyWriteModel) AppendEvents ¶
func (wm *IAMPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMPasswordAgePolicyWriteModel) NewChangedEvent ¶
func (wm *IAMPasswordAgePolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, expireWarnDays, maxAgeDays uint64) (*iam.PasswordAgePolicyChangedEvent, bool)
func (*IAMPasswordAgePolicyWriteModel) Query ¶
func (wm *IAMPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMPasswordAgePolicyWriteModel) Reduce ¶
func (wm *IAMPasswordAgePolicyWriteModel) Reduce() error
type IAMPasswordComplexityPolicyWriteModel ¶
type IAMPasswordComplexityPolicyWriteModel struct {
PasswordComplexityPolicyWriteModel
}
func NewIAMPasswordComplexityPolicyWriteModel ¶
func NewIAMPasswordComplexityPolicyWriteModel() *IAMPasswordComplexityPolicyWriteModel
func (*IAMPasswordComplexityPolicyWriteModel) AppendEvents ¶
func (wm *IAMPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMPasswordComplexityPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMPasswordComplexityPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, hasLowercase, hasUppercase, hasNumber, hasSymbol bool, ) (*iam.PasswordComplexityPolicyChangedEvent, bool)
func (*IAMPasswordComplexityPolicyWriteModel) Query ¶
func (wm *IAMPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMPasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *IAMPasswordComplexityPolicyWriteModel) Reduce() error
type IAMPrivacyPolicyWriteModel ¶
type IAMPrivacyPolicyWriteModel struct {
PrivacyPolicyWriteModel
}
func NewIAMPrivacyPolicyWriteModel ¶
func NewIAMPrivacyPolicyWriteModel() *IAMPrivacyPolicyWriteModel
func (*IAMPrivacyPolicyWriteModel) AppendEvents ¶
func (wm *IAMPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMPrivacyPolicyWriteModel) NewChangedEvent ¶
func (wm *IAMPrivacyPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, tosLink, privacyLink, helpLink string, ) (*iam.PrivacyPolicyChangedEvent, bool)
func (*IAMPrivacyPolicyWriteModel) Query ¶
func (wm *IAMPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMPrivacyPolicyWriteModel) Reduce ¶
func (wm *IAMPrivacyPolicyWriteModel) Reduce() error
type IAMSecondFactorWriteModel ¶
type IAMSecondFactorWriteModel struct {
SecondFactorWriteModel
}
func NewIAMSecondFactorWriteModel ¶
func NewIAMSecondFactorWriteModel(factorType domain.SecondFactorType) *IAMSecondFactorWriteModel
func (*IAMSecondFactorWriteModel) AppendEvents ¶
func (wm *IAMSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*IAMSecondFactorWriteModel) Query ¶
func (wm *IAMSecondFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMSecondFactorWriteModel) Reduce ¶
func (wm *IAMSecondFactorWriteModel) Reduce() error
type IAMWriteModel ¶
type IAMWriteModel struct { eventstore.WriteModel SetUpStarted domain.Step SetUpDone domain.Step GlobalOrgID string ProjectID string }
func NewIAMWriteModel ¶
func NewIAMWriteModel() *IAMWriteModel
func (*IAMWriteModel) Query ¶
func (wm *IAMWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMWriteModel) Reduce ¶
func (wm *IAMWriteModel) Reduce() error
type IDPConfigWriteModel ¶
type IDPConfigWriteModel struct { eventstore.WriteModel State domain.IDPConfigState ConfigID string Name string AutoRegister bool StylingType domain.IDPConfigStylingType }
func (*IDPConfigWriteModel) AppendEvents ¶
func (rm *IDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPConfigWriteModel) Reduce ¶
func (rm *IDPConfigWriteModel) Reduce() error
type IDPJWTConfigWriteModel ¶
type IDPJWTConfigWriteModel struct {
JWTConfigWriteModel
}
func NewOrgIDPJWTConfigWriteModel ¶
func NewOrgIDPJWTConfigWriteModel(idpConfigID, orgID string) *IDPJWTConfigWriteModel
func (*IDPJWTConfigWriteModel) AppendEvents ¶
func (wm *IDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPJWTConfigWriteModel) NewChangedEvent ¶
func (wm *IDPJWTConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, jwtEndpoint, issuer, keysEndpoint, headerName string, ) (*org.IDPJWTConfigChangedEvent, bool, error)
func (*IDPJWTConfigWriteModel) Query ¶
func (wm *IDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IDPJWTConfigWriteModel) Reduce ¶
func (wm *IDPJWTConfigWriteModel) Reduce() error
type IDPOIDCConfigWriteModel ¶
type IDPOIDCConfigWriteModel struct {
OIDCConfigWriteModel
}
func NewOrgIDPOIDCConfigWriteModel ¶
func NewOrgIDPOIDCConfigWriteModel(idpConfigID, orgID string) *IDPOIDCConfigWriteModel
func (*IDPOIDCConfigWriteModel) AppendEvents ¶
func (wm *IDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPOIDCConfigWriteModel) NewChangedEvent ¶
func (wm *IDPOIDCConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, clientID, issuer, authorizationEndpoint, tokenEndpoint, clientSecretString string, secretCrypto crypto.Crypto, idpDisplayNameMapping, userNameMapping domain.OIDCMappingField, scopes ...string, ) (*org.IDPOIDCConfigChangedEvent, bool, error)
func (*IDPOIDCConfigWriteModel) Query ¶
func (wm *IDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IDPOIDCConfigWriteModel) Reduce ¶
func (wm *IDPOIDCConfigWriteModel) Reduce() error
type IdentityProviderWriteModel ¶
type IdentityProviderWriteModel struct { eventstore.WriteModel IDPConfigID string IDPProviderType domain.IdentityProviderType State domain.IdentityProviderState }
func (*IdentityProviderWriteModel) Reduce ¶
func (wm *IdentityProviderWriteModel) Reduce() error
type JWTConfigWriteModel ¶
type JWTConfigWriteModel struct { eventstore.WriteModel IDPConfigID string JWTEndpoint string Issuer string KeysEndpoint string HeaderName string State domain.IDPConfigState }
func (*JWTConfigWriteModel) Reduce ¶
func (wm *JWTConfigWriteModel) Reduce() error
type KeyPairWriteModel ¶
type KeyPairWriteModel struct { eventstore.WriteModel Usage domain.KeyUsage Algorithm string PrivateKey *domain.Key PublicKey *domain.Key }
func NewKeyPairWriteModel ¶
func NewKeyPairWriteModel(aggregateID, resourceOwner string) *KeyPairWriteModel
func (*KeyPairWriteModel) AppendEvents ¶
func (wm *KeyPairWriteModel) AppendEvents(events ...eventstore.Event)
func (*KeyPairWriteModel) Query ¶
func (wm *KeyPairWriteModel) Query() *eventstore.SearchQueryBuilder
func (*KeyPairWriteModel) Reduce ¶
func (wm *KeyPairWriteModel) Reduce() error
type LabelPolicyWriteModel ¶
type LabelPolicyWriteModel struct { eventstore.WriteModel PrimaryColor string BackgroundColor string WarnColor string FontColor string LogoKey string IconKey string PrimaryColorDark string BackgroundColorDark string WarnColorDark string FontColorDark string LogoDarkKey string IconDarkKey string FontKey string HideLoginNameSuffix bool ErrorMsgPopup bool DisableWatermark bool State domain.PolicyState }
func (*LabelPolicyWriteModel) Reduce ¶
func (wm *LabelPolicyWriteModel) Reduce() error
type LockoutPolicyWriteModel ¶
type LockoutPolicyWriteModel struct { eventstore.WriteModel MaxPasswordAttempts uint64 ShowLockOutFailures bool State domain.PolicyState }
func (*LockoutPolicyWriteModel) Reduce ¶
func (wm *LockoutPolicyWriteModel) Reduce() error
type LoginPolicy ¶
type LoginPolicyWriteModel ¶
type LoginPolicyWriteModel struct { eventstore.WriteModel AllowUserNamePassword bool AllowRegister bool AllowExternalIDP bool ForceMFA bool HidePasswordReset bool IgnoreUnknownUsernames bool PasswordlessType domain.PasswordlessType State domain.PolicyState }
func (*LoginPolicyWriteModel) Reduce ¶
func (wm *LoginPolicyWriteModel) Reduce() error
type MachineKeyWriteModel ¶
type MachineKeyWriteModel struct { eventstore.WriteModel KeyID string KeyType domain.AuthNKeyType ExpirationDate time.Time State domain.MachineKeyState }
func NewMachineKeyWriteModel ¶
func NewMachineKeyWriteModel(userID, keyID, resourceOwner string) *MachineKeyWriteModel
func (*MachineKeyWriteModel) AppendEvents ¶
func (wm *MachineKeyWriteModel) AppendEvents(events ...eventstore.Event)
func (*MachineKeyWriteModel) Exists ¶
func (wm *MachineKeyWriteModel) Exists() bool
func (*MachineKeyWriteModel) Query ¶
func (wm *MachineKeyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*MachineKeyWriteModel) Reduce ¶
func (wm *MachineKeyWriteModel) Reduce() error
type MachineWriteModel ¶
type MachineWriteModel struct { eventstore.WriteModel UserName string Name string Description string UserState domain.UserState }
func NewMachineWriteModel ¶
func NewMachineWriteModel(userID, resourceOwner string) *MachineWriteModel
func (*MachineWriteModel) NewChangedEvent ¶
func (wm *MachineWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, name, description string, ) (*user.MachineChangedEvent, bool, error)
func (*MachineWriteModel) Query ¶
func (wm *MachineWriteModel) Query() *eventstore.SearchQueryBuilder
func (*MachineWriteModel) Reduce ¶
func (wm *MachineWriteModel) Reduce() error
type MailTemplateWriteModel ¶
type MailTemplateWriteModel struct { eventstore.WriteModel Template []byte State domain.PolicyState }
func (*MailTemplateWriteModel) Reduce ¶
func (wm *MailTemplateWriteModel) Reduce() error
type MemberWriteModel ¶
type MemberWriteModel struct { eventstore.WriteModel UserID string Roles []string State domain.MemberState }
func NewMemberWriteModel ¶
func NewMemberWriteModel(userID string) *MemberWriteModel
func (*MemberWriteModel) Reduce ¶
func (wm *MemberWriteModel) Reduce() error
type MetadataListWriteModel ¶
type MetadataListWriteModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func (*MetadataListWriteModel) Reduce ¶
func (wm *MetadataListWriteModel) Reduce() error
type MetadataWriteModel ¶
type MetadataWriteModel struct { eventstore.WriteModel Key string Value []byte State domain.MetadataState }
func (*MetadataWriteModel) Reduce ¶
func (wm *MetadataWriteModel) Reduce() error
type MultiFactorWriteModel ¶
type MultiFactorWriteModel struct { eventstore.WriteModel MFAType domain.MultiFactorType State domain.FactorState }
func (*MultiFactorWriteModel) Reduce ¶
func (wm *MultiFactorWriteModel) Reduce() error
type OIDCApplicationWriteModel ¶
type OIDCApplicationWriteModel struct { eventstore.WriteModel AppID string AppName string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string RedirectUris []string ResponseTypes []domain.OIDCResponseType GrantTypes []domain.OIDCGrantType ApplicationType domain.OIDCApplicationType AuthMethodType domain.OIDCAuthMethodType PostLogoutRedirectUris []string OIDCVersion domain.OIDCVersion Compliance *domain.Compliance DevMode bool AccessTokenType domain.OIDCTokenType AccessTokenRoleAssertion bool IDTokenRoleAssertion bool IDTokenUserinfoAssertion bool ClockSkew time.Duration State domain.AppState AdditionalOrigins []string // contains filtered or unexported fields }
func NewOIDCApplicationWriteModel ¶
func NewOIDCApplicationWriteModel(projectID, resourceOwner string) *OIDCApplicationWriteModel
func NewOIDCApplicationWriteModelWithAppID ¶
func NewOIDCApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *OIDCApplicationWriteModel
func (*OIDCApplicationWriteModel) AppendEvents ¶
func (wm *OIDCApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*OIDCApplicationWriteModel) IsOIDC ¶
func (wm *OIDCApplicationWriteModel) IsOIDC() bool
func (*OIDCApplicationWriteModel) NewChangedEvent ¶
func (wm *OIDCApplicationWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, appID string, redirectURIS, postLogoutRedirectURIs []string, responseTypes []domain.OIDCResponseType, grantTypes []domain.OIDCGrantType, appType domain.OIDCApplicationType, authMethodType domain.OIDCAuthMethodType, oidcVersion domain.OIDCVersion, accessTokenType domain.OIDCTokenType, devMode, accessTokenRoleAssertion, idTokenRoleAssertion, idTokenUserinfoAssertion bool, clockSkew time.Duration, additionalOrigins []string, ) (*project.OIDCConfigChangedEvent, bool, error)
func (*OIDCApplicationWriteModel) Query ¶
func (wm *OIDCApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OIDCApplicationWriteModel) Reduce ¶
func (wm *OIDCApplicationWriteModel) Reduce() error
type OIDCConfigWriteModel ¶
type OIDCConfigWriteModel struct { eventstore.WriteModel IDPConfigID string ClientID string ClientSecret *crypto.CryptoValue Issuer string AuthorizationEndpoint string TokenEndpoint string Scopes []string IDPDisplayNameMapping domain.OIDCMappingField UserNameMapping domain.OIDCMappingField State domain.IDPConfigState }
func (*OIDCConfigWriteModel) Reduce ¶
func (wm *OIDCConfigWriteModel) Reduce() error
type ORGOrgIAMPolicyWriteModel ¶
type ORGOrgIAMPolicyWriteModel struct {
PolicyOrgIAMWriteModel
}
func NewORGOrgIAMPolicyWriteModel ¶
func NewORGOrgIAMPolicyWriteModel(orgID string) *ORGOrgIAMPolicyWriteModel
func (*ORGOrgIAMPolicyWriteModel) AppendEvents ¶
func (wm *ORGOrgIAMPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*ORGOrgIAMPolicyWriteModel) NewChangedEvent ¶
func (wm *ORGOrgIAMPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, userLoginMustBeDomain bool) (*org.OrgIAMPolicyChangedEvent, bool)
func (*ORGOrgIAMPolicyWriteModel) Query ¶
func (wm *ORGOrgIAMPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ORGOrgIAMPolicyWriteModel) Reduce ¶
func (wm *ORGOrgIAMPolicyWriteModel) Reduce() error
type OrgAuthFactorsAllowedWriteModel ¶
type OrgAuthFactorsAllowedWriteModel struct { eventstore.WriteModel SecondFactors map[domain.SecondFactorType]*factorState MultiFactors map[domain.MultiFactorType]*factorState }
func NewOrgAuthFactorsAllowedWriteModel ¶
func NewOrgAuthFactorsAllowedWriteModel(orgID string) *OrgAuthFactorsAllowedWriteModel
func (*OrgAuthFactorsAllowedWriteModel) Query ¶
func (wm *OrgAuthFactorsAllowedWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgAuthFactorsAllowedWriteModel) Reduce ¶
func (wm *OrgAuthFactorsAllowedWriteModel) Reduce() error
func (*OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel ¶
func (wm *OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel(factor domain.MultiFactorType) *OrgMultiFactorWriteModel
func (*OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel ¶
func (wm *OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel(factor domain.SecondFactorType) *OrgSecondFactorWriteModel
type OrgCustomLoginTextReadModel ¶
type OrgCustomLoginTextReadModel struct {
CustomLoginTextReadModel
}
func NewOrgCustomLoginTextReadModel ¶
func NewOrgCustomLoginTextReadModel(orgID string, lang language.Tag) *OrgCustomLoginTextReadModel
func (*OrgCustomLoginTextReadModel) AppendEvents ¶
func (wm *OrgCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomLoginTextReadModel) Query ¶
func (wm *OrgCustomLoginTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomLoginTextReadModel) Reduce ¶
func (wm *OrgCustomLoginTextReadModel) Reduce() error
type OrgCustomLoginTextsReadModel ¶
type OrgCustomLoginTextsReadModel struct {
CustomLoginTextsReadModel
}
func NewOrgCustomLoginTextsReadModel ¶
func NewOrgCustomLoginTextsReadModel(orgID string) *OrgCustomLoginTextsReadModel
func (*OrgCustomLoginTextsReadModel) AppendEvents ¶
func (wm *OrgCustomLoginTextsReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomLoginTextsReadModel) Query ¶
func (wm *OrgCustomLoginTextsReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomLoginTextsReadModel) Reduce ¶
func (wm *OrgCustomLoginTextsReadModel) Reduce() error
type OrgCustomMessageTemplatesReadModel ¶
type OrgCustomMessageTemplatesReadModel struct {
CustomMessageTemplatesReadModel
}
func NewOrgCustomMessageTextsWriteModel ¶
func NewOrgCustomMessageTextsWriteModel(orgID string) *OrgCustomMessageTemplatesReadModel
func (*OrgCustomMessageTemplatesReadModel) AppendEvents ¶
func (wm *OrgCustomMessageTemplatesReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomMessageTemplatesReadModel) Query ¶
func (wm *OrgCustomMessageTemplatesReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomMessageTemplatesReadModel) Reduce ¶
func (wm *OrgCustomMessageTemplatesReadModel) Reduce() error
type OrgCustomMessageTextReadModel ¶
type OrgCustomMessageTextReadModel struct {
CustomMessageTextReadModel
}
func NewOrgCustomMessageTextWriteModel ¶
func NewOrgCustomMessageTextWriteModel(orgID, messageTextType string, lang language.Tag) *OrgCustomMessageTextReadModel
func (*OrgCustomMessageTextReadModel) AppendEvents ¶
func (wm *OrgCustomMessageTextReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomMessageTextReadModel) Query ¶
func (wm *OrgCustomMessageTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomMessageTextReadModel) Reduce ¶
func (wm *OrgCustomMessageTextReadModel) Reduce() error
type OrgDomainVerifiedWriteModel ¶
type OrgDomainVerifiedWriteModel struct { eventstore.WriteModel Domain string Verified bool }
func NewOrgDomainVerifiedWriteModel ¶
func NewOrgDomainVerifiedWriteModel(domain string) *OrgDomainVerifiedWriteModel
func (*OrgDomainVerifiedWriteModel) AppendEvents ¶
func (wm *OrgDomainVerifiedWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgDomainVerifiedWriteModel) Query ¶
func (wm *OrgDomainVerifiedWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainVerifiedWriteModel) Reduce ¶
func (wm *OrgDomainVerifiedWriteModel) Reduce() error
type OrgDomainWriteModel ¶
type OrgDomainWriteModel struct { eventstore.WriteModel Domain string ValidationType domain.OrgDomainValidationType ValidationCode *crypto.CryptoValue Primary bool Verified bool State domain.OrgDomainState }
func NewOrgDomainWriteModel ¶
func NewOrgDomainWriteModel(orgID string, domain string) *OrgDomainWriteModel
func (*OrgDomainWriteModel) AppendEvents ¶
func (wm *OrgDomainWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgDomainWriteModel) Query ¶
func (wm *OrgDomainWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainWriteModel) Reduce ¶
func (wm *OrgDomainWriteModel) Reduce() error
type OrgDomainsWriteModel ¶
type OrgDomainsWriteModel struct { eventstore.WriteModel Domains []*Domain PrimaryDomain string OrgName string }
func NewOrgDomainsWriteModel ¶
func NewOrgDomainsWriteModel(orgID string) *OrgDomainsWriteModel
func (*OrgDomainsWriteModel) Query ¶
func (wm *OrgDomainsWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainsWriteModel) Reduce ¶
func (wm *OrgDomainsWriteModel) Reduce() error
type OrgFeatureCheckerFunc ¶
type OrgFeatureCheckerFunc func(ctx context.Context, orgID string, requiredFeatures ...string) error
func (OrgFeatureCheckerFunc) CheckOrgFeatures ¶
type OrgFeaturesWriteModel ¶
type OrgFeaturesWriteModel struct {
FeaturesWriteModel
}
func NewOrgFeaturesWriteModel ¶
func NewOrgFeaturesWriteModel(orgID string) *OrgFeaturesWriteModel
func (*OrgFeaturesWriteModel) AppendEvents ¶
func (wm *OrgFeaturesWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgFeaturesWriteModel) IsValid ¶
func (wm *OrgFeaturesWriteModel) IsValid() bool
func (*OrgFeaturesWriteModel) NewSetEvent ¶
func (wm *OrgFeaturesWriteModel) NewSetEvent( ctx context.Context, aggregate *eventstore.Aggregate, tierName, tierDescription string, state domain.FeaturesState, stateDescription string, auditLogRetention time.Duration, loginPolicyFactors, loginPolicyIDP, loginPolicyPasswordless, loginPolicyRegistration, loginPolicyUsernameLogin, loginPolicyPasswordReset, passwordComplexityPolicy, labelPolicyPrivateLabel, labelPolicyWatermark, customDomain, privacyPolicy, metadataUser, customTextMessage, customTextLogin, lockoutPolicy bool, actionsAllowed domain.ActionsAllowed, maxActions int, ) (*org.FeaturesSetEvent, bool)
func (*OrgFeaturesWriteModel) Query ¶
func (wm *OrgFeaturesWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgFeaturesWriteModel) Reduce ¶
func (wm *OrgFeaturesWriteModel) Reduce() error
type OrgFlowWriteModel ¶
type OrgFlowWriteModel struct {
FlowWriteModel
}
func NewOrgFlowWriteModel ¶
func NewOrgFlowWriteModel(flowType domain.FlowType, resourceOwner string) *OrgFlowWriteModel
func (*OrgFlowWriteModel) AppendEvents ¶
func (wm *OrgFlowWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgFlowWriteModel) Query ¶
func (wm *OrgFlowWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgFlowWriteModel) Reduce ¶
func (wm *OrgFlowWriteModel) Reduce() error
type OrgIDPConfigWriteModel ¶
type OrgIDPConfigWriteModel struct {
IDPConfigWriteModel
}
func NewOrgIDPConfigWriteModel ¶
func NewOrgIDPConfigWriteModel(configID, orgID string) *OrgIDPConfigWriteModel
func (*OrgIDPConfigWriteModel) AppendAndReduce ¶
func (wm *OrgIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
func (*OrgIDPConfigWriteModel) AppendEvents ¶
func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgIDPConfigWriteModel) NewChangedEvent ¶
func (wm *OrgIDPConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, stylingType domain.IDPConfigStylingType, autoRegister bool, ) (*org.IDPConfigChangedEvent, bool)
func (*OrgIDPConfigWriteModel) Query ¶
func (wm *OrgIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgIDPConfigWriteModel) Reduce ¶
func (wm *OrgIDPConfigWriteModel) Reduce() error
type OrgIdentityProviderWriteModel ¶
type OrgIdentityProviderWriteModel struct {
IdentityProviderWriteModel
}
func NewOrgIdentityProviderWriteModel ¶
func NewOrgIdentityProviderWriteModel(orgID, idpConfigID string) *OrgIdentityProviderWriteModel
func (*OrgIdentityProviderWriteModel) AppendEvents ¶
func (wm *OrgIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgIdentityProviderWriteModel) Query ¶
func (wm *OrgIdentityProviderWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgIdentityProviderWriteModel) Reduce ¶
func (wm *OrgIdentityProviderWriteModel) Reduce() error
type OrgLabelPolicyWriteModel ¶
type OrgLabelPolicyWriteModel struct {
LabelPolicyWriteModel
}
func NewOrgLabelPolicyWriteModel ¶
func NewOrgLabelPolicyWriteModel(orgID string) *OrgLabelPolicyWriteModel
func (*OrgLabelPolicyWriteModel) AppendEvents ¶
func (wm *OrgLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLabelPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLabelPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, primaryColor, backgroundColor, warnColor, fontColor, primaryColorDark, backgroundColorDark, warnColorDark, fontColorDark string, hideLoginNameSuffix, errorMsgPopup, disableWatermark bool, ) (*org.LabelPolicyChangedEvent, bool)
func (*OrgLabelPolicyWriteModel) Query ¶
func (wm *OrgLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLabelPolicyWriteModel) Reduce ¶
func (wm *OrgLabelPolicyWriteModel) Reduce() error
type OrgLockoutPolicyWriteModel ¶
type OrgLockoutPolicyWriteModel struct {
LockoutPolicyWriteModel
}
func NewOrgLockoutPolicyWriteModel ¶
func NewOrgLockoutPolicyWriteModel(orgID string) *OrgLockoutPolicyWriteModel
func (*OrgLockoutPolicyWriteModel) AppendEvents ¶
func (wm *OrgLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLockoutPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLockoutPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, showLockoutFailure bool) (*org.LockoutPolicyChangedEvent, bool)
func (*OrgLockoutPolicyWriteModel) Query ¶
func (wm *OrgLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLockoutPolicyWriteModel) Reduce ¶
func (wm *OrgLockoutPolicyWriteModel) Reduce() error
type OrgLoginPolicyWriteModel ¶
type OrgLoginPolicyWriteModel struct {
LoginPolicyWriteModel
}
func NewOrgLoginPolicyWriteModel ¶
func NewOrgLoginPolicyWriteModel(orgID string) *OrgLoginPolicyWriteModel
func (*OrgLoginPolicyWriteModel) AppendEvents ¶
func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLoginPolicyWriteModel) IsValid ¶
func (wm *OrgLoginPolicyWriteModel) IsValid() bool
func (*OrgLoginPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLoginPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, allowUsernamePassword, allowRegister, allowExternalIDP, forceMFA, hidePasswordReset, ignoreUnknownUsernames bool, passwordlessType domain.PasswordlessType, ) (*org.LoginPolicyChangedEvent, bool)
func (*OrgLoginPolicyWriteModel) Query ¶
func (wm *OrgLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLoginPolicyWriteModel) Reduce ¶
func (wm *OrgLoginPolicyWriteModel) Reduce() error
type OrgMailTemplateWriteModel ¶
type OrgMailTemplateWriteModel struct {
MailTemplateWriteModel
}
func NewOrgMailTemplateWriteModel ¶
func NewOrgMailTemplateWriteModel(orgID string) *OrgMailTemplateWriteModel
func (*OrgMailTemplateWriteModel) AppendEvents ¶
func (wm *OrgMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMailTemplateWriteModel) NewChangedEvent ¶
func (wm *OrgMailTemplateWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, template []byte, ) (*org.MailTemplateChangedEvent, bool)
func (*OrgMailTemplateWriteModel) Query ¶
func (wm *OrgMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMailTemplateWriteModel) Reduce ¶
func (wm *OrgMailTemplateWriteModel) Reduce() error
type OrgMemberWriteModel ¶
type OrgMemberWriteModel struct {
MemberWriteModel
}
func NewOrgMemberWriteModel ¶
func NewOrgMemberWriteModel(orgID, userID string) *OrgMemberWriteModel
func (*OrgMemberWriteModel) AppendEvents ¶
func (wm *OrgMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMemberWriteModel) Query ¶
func (wm *OrgMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMemberWriteModel) Reduce ¶
func (wm *OrgMemberWriteModel) Reduce() error
type OrgMultiFactorWriteModel ¶
type OrgMultiFactorWriteModel struct {
MultiFactorWriteModel
}
func NewOrgMultiFactorWriteModel ¶
func NewOrgMultiFactorWriteModel(orgID string, factorType domain.MultiFactorType) *OrgMultiFactorWriteModel
func (*OrgMultiFactorWriteModel) AppendEvents ¶
func (wm *OrgMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMultiFactorWriteModel) Query ¶
func (wm *OrgMultiFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMultiFactorWriteModel) Reduce ¶
func (wm *OrgMultiFactorWriteModel) Reduce() error
type OrgPasswordAgePolicyWriteModel ¶
type OrgPasswordAgePolicyWriteModel struct {
PasswordAgePolicyWriteModel
}
func NewOrgPasswordAgePolicyWriteModel ¶
func NewOrgPasswordAgePolicyWriteModel(orgID string) *OrgPasswordAgePolicyWriteModel
func (*OrgPasswordAgePolicyWriteModel) AppendEvents ¶
func (wm *OrgPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPasswordAgePolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPasswordAgePolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, expireWarnDays, maxAgeDays uint64) (*org.PasswordAgePolicyChangedEvent, bool)
func (*OrgPasswordAgePolicyWriteModel) Query ¶
func (wm *OrgPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPasswordAgePolicyWriteModel) Reduce ¶
func (wm *OrgPasswordAgePolicyWriteModel) Reduce() error
type OrgPasswordComplexityPolicyWriteModel ¶
type OrgPasswordComplexityPolicyWriteModel struct {
PasswordComplexityPolicyWriteModel
}
func NewOrgPasswordComplexityPolicyWriteModel ¶
func NewOrgPasswordComplexityPolicyWriteModel(orgID string) *OrgPasswordComplexityPolicyWriteModel
func (*OrgPasswordComplexityPolicyWriteModel) AppendEvents ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPasswordComplexityPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, hasLowercase, hasUppercase, hasNumber, hasSymbol bool, ) (*org.PasswordComplexityPolicyChangedEvent, bool)
func (*OrgPasswordComplexityPolicyWriteModel) Query ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) Reduce() error
type OrgPrivacyPolicyWriteModel ¶
type OrgPrivacyPolicyWriteModel struct {
PrivacyPolicyWriteModel
}
func NewOrgPrivacyPolicyWriteModel ¶
func NewOrgPrivacyPolicyWriteModel(orgID string) *OrgPrivacyPolicyWriteModel
func (*OrgPrivacyPolicyWriteModel) AppendEvents ¶
func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPrivacyPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, tosLink, privacyLink, helpLink string, ) (*org.PrivacyPolicyChangedEvent, bool)
func (*OrgPrivacyPolicyWriteModel) Query ¶
func (wm *OrgPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPrivacyPolicyWriteModel) Reduce ¶
func (wm *OrgPrivacyPolicyWriteModel) Reduce() error
type OrgSecondFactorWriteModel ¶
type OrgSecondFactorWriteModel struct {
SecondFactorWriteModel
}
func NewOrgSecondFactorWriteModel ¶
func NewOrgSecondFactorWriteModel(orgID string, factorType domain.SecondFactorType) *OrgSecondFactorWriteModel
func (*OrgSecondFactorWriteModel) AppendEvents ¶
func (wm *OrgSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgSecondFactorWriteModel) Query ¶
func (wm *OrgSecondFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgSecondFactorWriteModel) Reduce ¶
func (wm *OrgSecondFactorWriteModel) Reduce() error
type OrgWriteModel ¶
type OrgWriteModel struct { eventstore.WriteModel Name string State domain.OrgState PrimaryDomain string }
func NewOrgWriteModel ¶
func NewOrgWriteModel(orgID string) *OrgWriteModel
func (*OrgWriteModel) Query ¶
func (wm *OrgWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgWriteModel) Reduce ¶
func (wm *OrgWriteModel) Reduce() error
type PasswordAgePolicyWriteModel ¶
type PasswordAgePolicyWriteModel struct { eventstore.WriteModel ExpireWarnDays uint64 MaxAgeDays uint64 State domain.PolicyState }
func (*PasswordAgePolicyWriteModel) Reduce ¶
func (wm *PasswordAgePolicyWriteModel) Reduce() error
type PasswordComplexityPolicyWriteModel ¶
type PasswordComplexityPolicyWriteModel struct { eventstore.WriteModel MinLength uint64 HasLowercase bool HasUppercase bool HasNumber bool HasSymbol bool State domain.PolicyState }
func (*PasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *PasswordComplexityPolicyWriteModel) Reduce() error
type PersonalAccessTokenWriteModel ¶
type PersonalAccessTokenWriteModel struct { eventstore.WriteModel TokenID string ExpirationDate time.Time State domain.PersonalAccessTokenState }
func NewPersonalAccessTokenWriteModel ¶
func NewPersonalAccessTokenWriteModel(userID, tokenID, resourceOwner string) *PersonalAccessTokenWriteModel
func (*PersonalAccessTokenWriteModel) AppendEvents ¶
func (wm *PersonalAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*PersonalAccessTokenWriteModel) Exists ¶
func (wm *PersonalAccessTokenWriteModel) Exists() bool
func (*PersonalAccessTokenWriteModel) Query ¶
func (wm *PersonalAccessTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*PersonalAccessTokenWriteModel) Reduce ¶
func (wm *PersonalAccessTokenWriteModel) Reduce() error
type PolicyOrgIAMWriteModel ¶
type PolicyOrgIAMWriteModel struct { eventstore.WriteModel UserLoginMustBeDomain bool State domain.PolicyState }
func (*PolicyOrgIAMWriteModel) Reduce ¶
func (wm *PolicyOrgIAMWriteModel) Reduce() error
type PrivacyPolicyWriteModel ¶
type PrivacyPolicyWriteModel struct { eventstore.WriteModel TOSLink string PrivacyLink string HelpLink string State domain.PolicyState }
func (*PrivacyPolicyWriteModel) Reduce ¶
func (wm *PrivacyPolicyWriteModel) Reduce() error
type ProjectGrantMemberWriteModel ¶
type ProjectGrantMemberWriteModel struct { eventstore.WriteModel GrantID string UserID string Roles []string State domain.MemberState }
func NewProjectGrantMemberWriteModel ¶
func NewProjectGrantMemberWriteModel(projectID, userID, grantID string) *ProjectGrantMemberWriteModel
func (*ProjectGrantMemberWriteModel) AppendEvents ¶
func (wm *ProjectGrantMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectGrantMemberWriteModel) Query ¶
func (wm *ProjectGrantMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantMemberWriteModel) Reduce ¶
func (wm *ProjectGrantMemberWriteModel) Reduce() error
type ProjectGrantPreConditionReadModel ¶
type ProjectGrantPreConditionReadModel struct { eventstore.WriteModel ProjectID string GrantedOrgID string ProjectExists bool GrantedOrgExists bool ExistingRoleKeys []string }
func NewProjectGrantPreConditionReadModel ¶
func NewProjectGrantPreConditionReadModel(projectID, grantedOrgID string) *ProjectGrantPreConditionReadModel
func (*ProjectGrantPreConditionReadModel) Query ¶
func (wm *ProjectGrantPreConditionReadModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantPreConditionReadModel) Reduce ¶
func (wm *ProjectGrantPreConditionReadModel) Reduce() error
type ProjectGrantWriteModel ¶
type ProjectGrantWriteModel struct { eventstore.WriteModel GrantID string GrantedOrgID string RoleKeys []string State domain.ProjectGrantState }
func NewProjectGrantWriteModel ¶
func NewProjectGrantWriteModel(grantID, projectID, resourceOwner string) *ProjectGrantWriteModel
func (*ProjectGrantWriteModel) AppendEvents ¶
func (wm *ProjectGrantWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectGrantWriteModel) Query ¶
func (wm *ProjectGrantWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantWriteModel) Reduce ¶
func (wm *ProjectGrantWriteModel) Reduce() error
type ProjectMemberWriteModel ¶
type ProjectMemberWriteModel struct {
MemberWriteModel
}
func NewProjectMemberWriteModel ¶
func NewProjectMemberWriteModel(projectID, userID, resourceOwner string) *ProjectMemberWriteModel
func (*ProjectMemberWriteModel) AppendEvents ¶
func (wm *ProjectMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectMemberWriteModel) Query ¶
func (wm *ProjectMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectMemberWriteModel) Reduce ¶
func (wm *ProjectMemberWriteModel) Reduce() error
type ProjectRoleWriteModel ¶
type ProjectRoleWriteModel struct { eventstore.WriteModel Key string DisplayName string Group string State domain.ProjectRoleState }
func NewProjectRoleWriteModel ¶
func NewProjectRoleWriteModel(projectID, resourceOwner string) *ProjectRoleWriteModel
func NewProjectRoleWriteModelWithKey ¶
func NewProjectRoleWriteModelWithKey(key, projectID, resourceOwner string) *ProjectRoleWriteModel
func (*ProjectRoleWriteModel) AppendEvents ¶
func (wm *ProjectRoleWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectRoleWriteModel) NewProjectRoleChangedEvent ¶
func (wm *ProjectRoleWriteModel) NewProjectRoleChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, key, displayName, group string, ) (*project.RoleChangedEvent, bool, error)
func (*ProjectRoleWriteModel) Query ¶
func (wm *ProjectRoleWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectRoleWriteModel) Reduce ¶
func (wm *ProjectRoleWriteModel) Reduce() error
type ProjectWriteModel ¶
type ProjectWriteModel struct { eventstore.WriteModel Name string ProjectRoleAssertion bool ProjectRoleCheck bool HasProjectCheck bool PrivateLabelingSetting domain.PrivateLabelingSetting State domain.ProjectState }
func NewProjectWriteModel ¶
func NewProjectWriteModel(projectID string, resourceOwner string) *ProjectWriteModel
func (*ProjectWriteModel) NewChangedEvent ¶
func (wm *ProjectWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, name string, projectRoleAssertion, projectRoleCheck, hasProjectCheck bool, privateLabelingSetting domain.PrivateLabelingSetting, ) (*project.ProjectChangeEvent, bool, error)
func (*ProjectWriteModel) Query ¶
func (wm *ProjectWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectWriteModel) Reduce ¶
func (wm *ProjectWriteModel) Reduce() error
type SecondFactorWriteModel ¶
type SecondFactorWriteModel struct { eventstore.WriteModel MFAType domain.SecondFactorType State domain.FactorState }
func (*SecondFactorWriteModel) Reduce ¶
func (wm *SecondFactorWriteModel) Reduce() error
type Step1 ¶
type Step1 struct { GlobalOrg string IAMProject string DefaultLoginPolicy LoginPolicy Orgs []Org }
type Step10 ¶
type Step10 struct {
DefaultMailTemplate domain.MailTemplate
}
type Step12 ¶
type Step13 ¶
type Step13 struct {
DefaultMailTemplate domain.MailTemplate
}
type Step15 ¶
type Step15 struct {
DefaultMailTemplate domain.MailTemplate
}
type Step16 ¶
type Step16 struct {
DefaultMessageTexts []domain.CustomMessageText
}
type Step17 ¶
type Step17 struct {
PrivacyPolicy domain.PrivacyPolicy
}
type Step18 ¶
type Step18 struct {
LockoutPolicy domain.LockoutPolicy
}
type Step2 ¶
type Step2 struct {
DefaultPasswordComplexityPolicy domain.PasswordComplexityPolicy
}
type Step22 ¶
type Step22 struct {
DefaultMailTemplate domain.MailTemplate
}
type Step3 ¶
type Step3 struct {
DefaultPasswordAgePolicy domain.PasswordAgePolicy
}
type Step4 ¶
type Step4 struct {
DefaultPasswordLockoutPolicy domain.LockoutPolicy
}
type Step5 ¶
type Step5 struct {
DefaultOrgIAMPolicy domain.OrgIAMPolicy
}
type Step6 ¶
type Step6 struct {
DefaultLabelPolicy domain.LabelPolicy
}
type UniqueConstraintReadModel ¶
type UniqueConstraintReadModel struct { eventstore.WriteModel UniqueConstraints []*domain.UniqueConstraintMigration // contains filtered or unexported fields }
func NewUniqueConstraintReadModel ¶
func NewUniqueConstraintReadModel(ctx context.Context, provider commandProvider) *UniqueConstraintReadModel
func (*UniqueConstraintReadModel) AppendEvents ¶
func (rm *UniqueConstraintReadModel) AppendEvents(events ...eventstore.Event)
func (*UniqueConstraintReadModel) Query ¶
func (rm *UniqueConstraintReadModel) Query() *eventstore.SearchQueryBuilder
func (*UniqueConstraintReadModel) Reduce ¶
func (rm *UniqueConstraintReadModel) Reduce() error
type UserAccessTokenWriteModel ¶
type UserAccessTokenWriteModel struct { eventstore.WriteModel TokenID string ApplicationID string UserAgentID string Audience []string Scopes []string Expiration time.Time PreferredLanguage string UserState domain.UserState }
func NewUserAccessTokenWriteModel ¶
func NewUserAccessTokenWriteModel(userID, resourceOwner, tokenID string) *UserAccessTokenWriteModel
func (*UserAccessTokenWriteModel) AppendEvents ¶
func (wm *UserAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserAccessTokenWriteModel) Query ¶
func (wm *UserAccessTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserAccessTokenWriteModel) Reduce ¶
func (wm *UserAccessTokenWriteModel) Reduce() error
type UserGrantPreConditionReadModel ¶
type UserGrantPreConditionReadModel struct { eventstore.WriteModel UserID string ProjectID string ProjectGrantID string UserExists bool ProjectExists bool ProjectGrantExists bool ExistingRoleKeys []string }
func NewUserGrantPreConditionReadModel ¶
func NewUserGrantPreConditionReadModel(userID, projectID, projectGrantID string) *UserGrantPreConditionReadModel
func (*UserGrantPreConditionReadModel) Query ¶
func (wm *UserGrantPreConditionReadModel) Query() *eventstore.SearchQueryBuilder
func (*UserGrantPreConditionReadModel) Reduce ¶
func (wm *UserGrantPreConditionReadModel) Reduce() error
type UserGrantWriteModel ¶
type UserGrantWriteModel struct { eventstore.WriteModel UserID string ProjectID string ProjectGrantID string RoleKeys []string State domain.UserGrantState }
func NewUserGrantWriteModel ¶
func NewUserGrantWriteModel(userGrantID string, resourceOwner string) *UserGrantWriteModel
func (*UserGrantWriteModel) Query ¶
func (wm *UserGrantWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserGrantWriteModel) Reduce ¶
func (wm *UserGrantWriteModel) Reduce() error
type UserIDPLinkWriteModel ¶
type UserIDPLinkWriteModel struct { eventstore.WriteModel IDPConfigID string ExternalUserID string DisplayName string State domain.UserIDPLinkState }
func NewUserIDPLinkWriteModel ¶
func NewUserIDPLinkWriteModel(userID, idpConfigID, externalUserID, resourceOwner string) *UserIDPLinkWriteModel
func (*UserIDPLinkWriteModel) AppendEvents ¶
func (wm *UserIDPLinkWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserIDPLinkWriteModel) Query ¶
func (wm *UserIDPLinkWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserIDPLinkWriteModel) Reduce ¶
func (wm *UserIDPLinkWriteModel) Reduce() error
type UserMetadataByOrgListWriteModel ¶
type UserMetadataByOrgListWriteModel struct { eventstore.WriteModel UserMetadata map[string]map[string][]byte }
func NewUserMetadataByOrgListWriteModel ¶
func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel
func (*UserMetadataByOrgListWriteModel) AppendEvents ¶
func (wm *UserMetadataByOrgListWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataByOrgListWriteModel) Query ¶
func (wm *UserMetadataByOrgListWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataByOrgListWriteModel) Reduce ¶
func (wm *UserMetadataByOrgListWriteModel) Reduce() error
type UserMetadataListWriteModel ¶
type UserMetadataListWriteModel struct {
MetadataListWriteModel
}
func NewUserMetadataListWriteModel ¶
func NewUserMetadataListWriteModel(userID, resourceOwner string) *UserMetadataListWriteModel
func (*UserMetadataListWriteModel) AppendEvents ¶
func (wm *UserMetadataListWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataListWriteModel) Query ¶
func (wm *UserMetadataListWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataListWriteModel) Reduce ¶
func (wm *UserMetadataListWriteModel) Reduce() error
type UserMetadataWriteModel ¶
type UserMetadataWriteModel struct {
MetadataWriteModel
}
func NewUserMetadataWriteModel ¶
func NewUserMetadataWriteModel(userID, resourceOwner, key string) *UserMetadataWriteModel
func (*UserMetadataWriteModel) AppendEvents ¶
func (wm *UserMetadataWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataWriteModel) Query ¶
func (wm *UserMetadataWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataWriteModel) Reduce ¶
func (wm *UserMetadataWriteModel) Reduce() error
type UserWriteModel ¶
type UserWriteModel struct { eventstore.WriteModel UserName string IDPLinks []*domain.UserIDPLink UserState domain.UserState UserType domain.UserType }
func NewUserWriteModel ¶
func NewUserWriteModel(userID, resourceOwner string) *UserWriteModel
func (*UserWriteModel) IDPLinkByID ¶
func (wm *UserWriteModel) IDPLinkByID(idpID, externalUserID string) (idx int, idp *domain.UserIDPLink)
func (*UserWriteModel) Query ¶
func (wm *UserWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserWriteModel) Reduce ¶
func (wm *UserWriteModel) Reduce() error
Source Files ¶
- auth_checks.go
- command.go
- converter.go
- custom_login_text.go
- custom_login_text_model.go
- custom_message_text_model.go
- custom_text_model.go
- existing_label_policies_model.go
- features_model.go
- flow_model.go
- iam.go
- iam_converter.go
- iam_custom_login_text.go
- iam_custom_login_text_model.go
- iam_custom_message_text.go
- iam_custom_message_text_model.go
- iam_custom_text.go
- iam_custom_text_model.go
- iam_features.go
- iam_features_model.go
- iam_idp_config.go
- iam_idp_config_model.go
- iam_idp_jwt_config.go
- iam_idp_jwt_config_model.go
- iam_idp_oidc_config.go
- iam_idp_oidc_config_model.go
- iam_member.go
- iam_member_model.go
- iam_model.go
- iam_policy_label.go
- iam_policy_label_model.go
- iam_policy_login.go
- iam_policy_login_factors_model.go
- iam_policy_login_identity_provider_model.go
- iam_policy_login_model.go
- iam_policy_mail_template.go
- iam_policy_mail_template_model.go
- iam_policy_org_iam.go
- iam_policy_org_iam_model.go
- iam_policy_password_age.go
- iam_policy_password_age_model.go
- iam_policy_password_complexity.go
- iam_policy_password_complexity_model.go
- iam_policy_password_lockout.go
- iam_policy_password_lockout_model.go
- iam_policy_privacy.go
- iam_policy_privacy_model.go
- identity_provider_model.go
- idp_config_model.go
- jwt_config_model.go
- key_pair.go
- key_pair_model.go
- member_model.go
- metadata_model.go
- oidc_config_model.go
- org.go
- org_action.go
- org_action_model.go
- org_converter.go
- org_custom_login_text.go
- org_custom_login_text_model.go
- org_custom_message_model.go
- org_custom_message_text.go
- org_domain.go
- org_domain_model.go
- org_features.go
- org_features_model.go
- org_flow.go
- org_flow_model.go
- org_idp_config.go
- org_idp_config_model.go
- org_idp_jwt_config.go
- org_idp_jwt_config_model.go
- org_idp_oidc_config.go
- org_idp_oidc_config_model.go
- org_member.go
- org_member_model.go
- org_model.go
- org_policy_label.go
- org_policy_label_model.go
- org_policy_lockout.go
- org_policy_lockout_model.go
- org_policy_login.go
- org_policy_login_factors_model.go
- org_policy_login_identity_provider_model.go
- org_policy_login_model.go
- org_policy_mail_template.go
- org_policy_mail_template_model.go
- org_policy_org_iam.go
- org_policy_org_iam_model.go
- org_policy_password_age.go
- org_policy_password_age_model.go
- org_policy_password_complexity.go
- org_policy_password_complexity_model.go
- org_policy_privacy.go
- org_policy_privacy_model.go
- policy_label_model.go
- policy_login_factors_model.go
- policy_login_model.go
- policy_mail_template_model.go
- policy_org_iam_model.go
- policy_password_age_model.go
- policy_password_complexity_model.go
- policy_password_lockout_model.go
- policy_privacy_model.go
- project.go
- project_application.go
- project_application_api.go
- project_application_api_model.go
- project_application_key.go
- project_application_key_model.go
- project_application_model.go
- project_application_oidc.go
- project_application_oidc_model.go
- project_converter.go
- project_grant.go
- project_grant_member.go
- project_grant_member_model.go
- project_grant_model.go
- project_member.go
- project_member_model.go
- project_model.go
- project_role.go
- project_role_model.go
- setup.go
- setup_step1.go
- setup_step10.go
- setup_step11.go
- setup_step12.go
- setup_step13.go
- setup_step14.go
- setup_step15.go
- setup_step16.go
- setup_step17.go
- setup_step18.go
- setup_step19.go
- setup_step2.go
- setup_step20.go
- setup_step21.go
- setup_step22.go
- setup_step3.go
- setup_step4.go
- setup_step5.go
- setup_step6.go
- setup_step7.go
- setup_step8.go
- setup_step9.go
- statics.go
- unique_constraints_model.go
- user.go
- user_converter.go
- user_grant.go
- user_grant_converter.go
- user_grant_model.go
- user_human.go
- user_human_access_token_model.go
- user_human_address.go
- user_human_address_model.go
- user_human_avatar.go
- user_human_email.go
- user_human_email_model.go
- user_human_init.go
- user_human_init_model.go
- user_human_model.go
- user_human_otp.go
- user_human_otp_model.go
- user_human_password.go
- user_human_password_model.go
- user_human_phone.go
- user_human_phone_model.go
- user_human_profile.go
- user_human_profile_model.go
- user_human_refresh_token.go
- user_human_refresh_token_model.go
- user_human_webauthn.go
- user_human_webauthn_model.go
- user_idp_link.go
- user_idp_link_model.go
- user_machine.go
- user_machine_key.go
- user_machine_key_model.go
- user_machine_model.go
- user_membership.go
- user_metadata.go
- user_metadata_model.go
- user_model.go
- user_personal_access_token.go
- user_personal_access_token_model.go
Click to show internal directories.
Click to hide internal directories.