command

package
v1.87.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

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 API

type API struct {
	Name           string
	AuthMethodType string
}

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 (*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 (*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 (*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 (*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 (*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 (*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 (c *Commands) ActivateDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) ActivateLabelPolicy

func (c *Commands) ActivateLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) AddAPIApplication

func (c *Commands) AddAPIApplication(ctx context.Context, application *domain.APIApp, resourceOwner string) (_ *domain.APIApp, err error)

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) AddAction

func (c *Commands) AddAction(ctx context.Context, addAction *domain.Action, resourceOwner string) (_ string, _ *domain.ObjectDetails, 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 (c *Commands) AddDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)

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 (c *Commands) AddFontDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddFontLabelPolicy

func (c *Commands) AddFontLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddHuman

func (c *Commands) AddHuman(ctx context.Context, orgID string, human *domain.Human) (*domain.Human, error)

func (*Commands) AddHumanAvatar

func (c *Commands) AddHumanAvatar(ctx context.Context, orgID, userID, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddHumanOTP

func (c *Commands) AddHumanOTP(ctx context.Context, userID, resourceowner string) (*domain.OTP, error)

func (*Commands) AddIAMMember

func (c *Commands) AddIAMMember(ctx context.Context, member *domain.Member) (*domain.Member, error)

func (*Commands) AddIDPConfig

func (c *Commands) AddIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)

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 (c *Commands) AddIconDarkDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddIconDarkLabelPolicy

func (c *Commands) AddIconDarkLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddIconDefaultLabelPolicy

func (c *Commands) AddIconDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddIconLabelPolicy

func (c *Commands) AddIconLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)

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 (c *Commands) AddLogoDarkDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddLogoDarkLabelPolicy

func (c *Commands) AddLogoDarkLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddLogoDefaultLabelPolicy

func (c *Commands) AddLogoDefaultLabelPolicy(ctx context.Context, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddLogoLabelPolicy

func (c *Commands) AddLogoLabelPolicy(ctx context.Context, orgID, storageKey string) (*domain.ObjectDetails, error)

func (*Commands) AddMachine

func (c *Commands) AddMachine(ctx context.Context, orgID string, machine *domain.Machine) (*domain.Machine, error)

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 (c *Commands) AddOIDCApplication(ctx context.Context, application *domain.OIDCApp, resourceOwner string) (_ *domain.OIDCApp, err error)

func (*Commands) AddOrg

func (c *Commands) AddOrg(ctx context.Context, name, userID, resourceOwner string, claimedUserIDs []string) (*domain.Org, error)

func (*Commands) AddOrgDomain

func (c *Commands) AddOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.OrgDomain, error)

func (*Commands) AddOrgIAMPolicy

func (c *Commands) AddOrgIAMPolicy(ctx context.Context, resourceOwner string, policy *domain.OrgIAMPolicy) (*domain.OrgIAMPolicy, error)

func (*Commands) AddOrgMember

func (c *Commands) AddOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)

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 (c *Commands) AddPersonalAccessToken(ctx context.Context, userID, resourceOwner string, expirationDate time.Time, scopes []string, allowedUserType domain.UserType) (*domain.Token, string, error)

func (*Commands) AddPrivacyPolicy

func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) AddProject

func (c *Commands) AddProject(ctx context.Context, project *domain.Project, resourceOwner, ownerUserID string) (_ *domain.Project, err error)

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 (c *Commands) AddProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)

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 (c *Commands) AddUserGrant(ctx context.Context, usergrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)

func (*Commands) AddUserMachineKey

func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)

func (*Commands) AddUserToken

func (c *Commands) AddUserToken(ctx context.Context, orgID, agentID, clientID, userID string, audience, scopes []string, lifetime time.Duration) (*domain.Token, error)

func (*Commands) BulkAddProjectRole

func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, projectRoles []*domain.ProjectRole) (details *domain.ObjectDetails, err error)
func (c *Commands) BulkAddedUserIDPLinks(ctx context.Context, userID, resourceOwner string, links []*domain.UserIDPLink) (err error)

func (*Commands) BulkRemoveUserGrant

func (c *Commands) BulkRemoveUserGrant(ctx context.Context, grantIDs []string, resourceOwner string) (err error)

func (*Commands) BulkRemoveUserMetadata

func (c *Commands) BulkRemoveUserMetadata(ctx context.Context, userID, resourceOwner string, metadataKeys ...string) (_ *domain.ObjectDetails, err error)

func (*Commands) BulkSetUserMetadata

func (c *Commands) BulkSetUserMetadata(ctx context.Context, userID, resourceOwner string, metadatas ...*domain.Metadata) (_ *domain.ObjectDetails, err error)

func (*Commands) ChangeAPIApplication

func (c *Commands) ChangeAPIApplication(ctx context.Context, apiApp *domain.APIApp, resourceOwner string) (*domain.APIApp, error)

func (*Commands) ChangeAPIApplicationSecret

func (c *Commands) ChangeAPIApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string) (*domain.APIApp, error)

func (*Commands) ChangeAction

func (c *Commands) ChangeAction(ctx context.Context, actionChange *domain.Action, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ChangeApplication

func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ChangeDefaultIDPConfig

func (c *Commands) ChangeDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)

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 (c *Commands) ChangeHumanAddress(ctx context.Context, address *domain.Address) (*domain.Address, error)

func (*Commands) ChangeHumanEmail

func (c *Commands) ChangeHumanEmail(ctx context.Context, email *domain.Email) (*domain.Email, error)

func (*Commands) ChangeHumanPhone

func (c *Commands) ChangeHumanPhone(ctx context.Context, phone *domain.Phone, resourceOwner string) (*domain.Phone, error)

func (*Commands) ChangeHumanProfile

func (c *Commands) ChangeHumanProfile(ctx context.Context, profile *domain.Profile) (*domain.Profile, error)

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 (c *Commands) ChangeIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)

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 (c *Commands) ChangeMachine(ctx context.Context, machine *domain.Machine) (*domain.Machine, error)

func (*Commands) ChangeMailTemplate

func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)

func (*Commands) ChangeOIDCApplication

func (c *Commands) ChangeOIDCApplication(ctx context.Context, oidc *domain.OIDCApp, resourceOwner string) (*domain.OIDCApp, error)

func (*Commands) ChangeOIDCApplicationSecret

func (c *Commands) ChangeOIDCApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string) (*domain.OIDCApp, error)

func (*Commands) ChangeOrg

func (c *Commands) ChangeOrg(ctx context.Context, orgID, name string) (*domain.ObjectDetails, error)

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 (c *Commands) ChangePassword(ctx context.Context, orgID, userID, oldPassword, newPassword, userAgentID string) (objectDetails *domain.ObjectDetails, err error)

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 (c *Commands) ChangeProject(ctx context.Context, projectChange *domain.Project, resourceOwner string) (*domain.Project, error)

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 (c *Commands) ChangeUserGrant(ctx context.Context, userGrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)

func (*Commands) ChangeUsername

func (c *Commands) ChangeUsername(ctx context.Context, orgID, userID, userName string) (*domain.ObjectDetails, error)

func (*Commands) ClearFlow

func (c *Commands) ClearFlow(ctx context.Context, flowType domain.FlowType, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) CreateHumanEmailVerificationCode

func (c *Commands) CreateHumanEmailVerificationCode(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) CreateHumanPhoneVerificationCode

func (c *Commands) CreateHumanPhoneVerificationCode(ctx context.Context, userID, resourceowner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateAction

func (c *Commands) DeactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateApplication

func (c *Commands) DeactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateDefaultIDPConfig

func (c *Commands) DeactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateIDPConfig

func (c *Commands) DeactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateOrg

func (c *Commands) DeactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateProject

func (c *Commands) DeactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateProjectGrant

func (c *Commands) DeactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)

func (*Commands) DeactivateUser

func (c *Commands) DeactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateUserGrant

func (c *Commands) DeactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) DeleteAction

func (c *Commands) DeleteAction(ctx context.Context, actionID, resourceOwner string, flowTypes ...domain.FlowType) (*domain.ObjectDetails, error)

func (*Commands) ExecuteSetupSteps

func (c *Commands) ExecuteSetupSteps(ctx context.Context, steps []Step) error

func (*Commands) GenerateOrgDomainValidation

func (c *Commands) GenerateOrgDomainValidation(ctx context.Context, orgDomain *domain.OrgDomain) (token, url string, err error)

func (*Commands) GenerateSigningKeyPair

func (c *Commands) GenerateSigningKeyPair(ctx context.Context, algorithm string) error

func (*Commands) GetIAM

func (c *Commands) GetIAM(ctx context.Context) (*domain.IAM, error)

TODO: private as soon as setup uses query

func (*Commands) HumanAddPasswordlessInitCode

func (c *Commands) HumanAddPasswordlessInitCode(ctx context.Context, userID, resourceOwner string) (*domain.PasswordlessInitCode, error)

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 (c *Commands) HumanAddU2FSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool) (*domain.WebAuthNToken, error)

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 (c *Commands) HumanCheckMFAOTP(ctx context.Context, userID, code, resourceowner string, authRequest *domain.AuthRequest) error

func (*Commands) HumanCheckMFAOTPSetup

func (c *Commands) HumanCheckMFAOTPSetup(ctx context.Context, userID, code, userAgentID, resourceowner string) (*domain.ObjectDetails, error)

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 (c *Commands) HumanEmailVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanFinishPasswordlessLogin

func (c *Commands) HumanFinishPasswordlessLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, authRequest *domain.AuthRequest, isLoginUI bool) error

func (*Commands) HumanFinishU2FLogin

func (c *Commands) HumanFinishU2FLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, authRequest *domain.AuthRequest, isLoginUI bool) error

func (*Commands) HumanHumanPasswordlessSetup

func (c *Commands) HumanHumanPasswordlessSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, credentialData []byte) (*domain.ObjectDetails, error)

func (*Commands) HumanInitCodeSent

func (c *Commands) HumanInitCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanPasswordlessInitCodeSent

func (c *Commands) HumanPasswordlessInitCodeSent(ctx context.Context, userID, resourceOwner, codeID string) error

func (*Commands) HumanPasswordlessSetupInitCode

func (c *Commands) HumanPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, tokenName, userAgentID, codeID, verificationCode string, credentialData []byte) (*domain.ObjectDetails, error)

func (*Commands) HumanPhoneVerificationCodeSent

func (c *Commands) HumanPhoneVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanRemoveOTP

func (c *Commands) HumanRemoveOTP(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanRemovePasswordless

func (c *Commands) HumanRemovePasswordless(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanRemoveU2F

func (c *Commands) HumanRemoveU2F(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanSendPasswordlessInitCode

func (c *Commands) HumanSendPasswordlessInitCode(ctx context.Context, userID, resourceOwner string) (*domain.PasswordlessInitCode, error)

func (*Commands) HumanSkipMFAInit

func (c *Commands) HumanSkipMFAInit(ctx context.Context, userID, resourceowner string) (err error)

func (*Commands) HumanVerifyInitCode

func (c *Commands) HumanVerifyInitCode(ctx context.Context, userID, resourceOwner, code, passwordString string) error

func (*Commands) HumanVerifyU2FSetup

func (c *Commands) HumanVerifyU2FSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, credentialData []byte) (*domain.ObjectDetails, error)

func (*Commands) HumansSignOut

func (c *Commands) HumansSignOut(ctx context.Context, agentID string, userIDs []string) error

func (*Commands) ImportHuman

func (c *Commands) ImportHuman(ctx context.Context, orgID string, human *domain.Human, passwordless bool) (_ *domain.Human, passwordlessCode *domain.PasswordlessInitCode, err error)

func (*Commands) LockUser

func (c *Commands) LockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) PasswordCodeSent

func (c *Commands) PasswordCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) ReactivateAction

func (c *Commands) ReactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateApplication

func (c *Commands) ReactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateDefaultIDPConfig

func (c *Commands) ReactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateIDPConfig

func (c *Commands) ReactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateOrg

func (c *Commands) ReactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateProject

func (c *Commands) ReactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateProjectGrant

func (c *Commands) ReactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)

func (*Commands) ReactivateUser

func (c *Commands) ReactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateUserGrant

func (c *Commands) ReactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) RegisterHuman

func (c *Commands) RegisterHuman(ctx context.Context, orgID string, human *domain.Human, link *domain.UserIDPLink, orgMemberRoles []string) (*domain.Human, error)

func (*Commands) RemoveApplication

func (c *Commands) RemoveApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveApplicationKey

func (c *Commands) RemoveApplicationKey(ctx context.Context, projectID, applicationID, keyID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveAsset

func (c *Commands) RemoveAsset(ctx context.Context, bucketName, storeKey string) error

func (*Commands) RemoveAssetsFolder

func (c *Commands) RemoveAssetsFolder(ctx context.Context, bucketName, path string, recursive bool) error

func (*Commands) RemoveCustomIAMLoginTexts

func (c *Commands) RemoveCustomIAMLoginTexts(ctx context.Context, lang language.Tag) (*domain.ObjectDetails, error)

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 (c *Commands) RemoveFontDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveFontLabelPolicy

func (c *Commands) RemoveFontLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveHumanAvatar

func (c *Commands) RemoveHumanAvatar(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveHumanPhone

func (c *Commands) RemoveHumanPhone(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveIAMMember

func (c *Commands) RemoveIAMMember(ctx context.Context, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveIAMMessageTexts

func (c *Commands) RemoveIAMMessageTexts(ctx context.Context, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)

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 (c *Commands) RemoveIconDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDarkLabelPolicy

func (c *Commands) RemoveIconDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDefaultLabelPolicy

func (c *Commands) RemoveIconDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconLabelPolicy

func (c *Commands) RemoveIconLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLabelPolicy

func (c *Commands) RemoveLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLockoutPolicy

func (c *Commands) RemoveLockoutPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLoginPolicy

func (c *Commands) RemoveLoginPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDarkDefaultLabelPolicy

func (c *Commands) RemoveLogoDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDarkLabelPolicy

func (c *Commands) RemoveLogoDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDefaultLabelPolicy

func (c *Commands) RemoveLogoDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoLabelPolicy

func (c *Commands) RemoveLogoLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveMailTemplate

func (c *Commands) RemoveMailTemplate(ctx context.Context, orgID string) error

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 (c *Commands) RemoveOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgFeatures

func (c *Commands) RemoveOrgFeatures(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgIAMPolicy

func (c *Commands) RemoveOrgIAMPolicy(ctx context.Context, orgID string) error

func (*Commands) RemoveOrgLoginTexts

func (c *Commands) RemoveOrgLoginTexts(ctx context.Context, resourceOwner string, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgMember

func (c *Commands) RemoveOrgMember(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgMessageTexts

func (c *Commands) RemoveOrgMessageTexts(ctx context.Context, resourceOwner, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemovePasswordAgePolicy

func (c *Commands) RemovePasswordAgePolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemovePasswordComplexityPolicy

func (c *Commands) RemovePasswordComplexityPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemovePersonalAccessToken

func (c *Commands) RemovePersonalAccessToken(ctx context.Context, userID, tokenID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemovePrivacyPolicy

func (c *Commands) RemovePrivacyPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProject

func (c *Commands) RemoveProject(ctx context.Context, projectID, resourceOwner string, cascadingUserGrantIDs ...string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectGrant

func (c *Commands) RemoveProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string, cascadeUserGrantIDs ...string) (details *domain.ObjectDetails, err error)

func (*Commands) RemoveProjectGrantMember

func (c *Commands) RemoveProjectGrantMember(ctx context.Context, projectID, userID, grantID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectMember

func (c *Commands) RemoveProjectMember(ctx context.Context, projectID, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectRole

func (c *Commands) RemoveProjectRole(ctx context.Context, projectID, key, resourceOwner string, cascadingProjectGrantIds []string, cascadeUserGrantIDs ...string) (details *domain.ObjectDetails, err error)

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 (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 (*Commands) RemoveUserMachineKey

func (c *Commands) RemoveUserMachineKey(ctx context.Context, userID, keyID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveUserMetadata

func (c *Commands) RemoveUserMetadata(ctx context.Context, metadataKey, userID, resourceOwner string) (_ *domain.ObjectDetails, err error)

func (*Commands) RenewRefreshTokenAndAccessToken

func (c *Commands) RenewRefreshTokenAndAccessToken(
	ctx context.Context,
	userID,
	orgID,
	refreshToken,
	agentID,
	clientID string,
	audience,
	scopes []string,
	idleExpiration,
	accessLifetime time.Duration,
) (accessToken *domain.Token, newRefreshToken string, err error)

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 (c *Commands) RevokeAccessToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)

func (*Commands) RevokeRefreshToken

func (c *Commands) RevokeRefreshToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)

func (*Commands) RevokeRefreshTokens

func (c *Commands) RevokeRefreshTokens(ctx context.Context, userID, orgID string, tokenIDs []string) (err error)

func (*Commands) SetCustomIAMLoginText

func (c *Commands) SetCustomIAMLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)

func (*Commands) SetDefaultFeatures

func (c *Commands) SetDefaultFeatures(ctx context.Context, features *domain.Features) (*domain.ObjectDetails, error)

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 (c *Commands) SetOrgFeatures(ctx context.Context, resourceOwner string, features *domain.Features) (*domain.ObjectDetails, error)

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 (c *Commands) SetPassword(ctx context.Context, orgID, userID, passwordString string, oneTime bool) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) SetPasswordWithVerifyCode

func (c *Commands) SetPasswordWithVerifyCode(ctx context.Context, orgID, userID, code, passwordString, userAgentID string) (err error)

func (*Commands) SetPrimaryOrgDomain

func (c *Commands) SetPrimaryOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)

func (*Commands) SetTriggerActions

func (c *Commands) SetTriggerActions(ctx context.Context, flowType domain.FlowType, triggerType domain.TriggerType, actionIDs []string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) SetUpOrg

func (c *Commands) SetUpOrg(ctx context.Context, organisation *domain.Org, admin *domain.Human, claimedUserIDs []string, selfregistered bool) (*domain.ObjectDetails, error)

func (*Commands) SetUserMetadata

func (c *Commands) SetUserMetadata(ctx context.Context, metadata *domain.Metadata, userID, resourceOwner string) (_ *domain.Metadata, err error)

func (*Commands) SetupStep1

func (c *Commands) SetupStep1(ctx context.Context, step1 *Step1) error

func (*Commands) SetupStep10

func (c *Commands) SetupStep10(ctx context.Context, step *Step10) error

func (*Commands) SetupStep11

func (c *Commands) SetupStep11(ctx context.Context, step *Step11) error

func (*Commands) SetupStep12

func (c *Commands) SetupStep12(ctx context.Context, step *Step12) error

func (*Commands) SetupStep13

func (c *Commands) SetupStep13(ctx context.Context, step *Step13) error

func (*Commands) SetupStep14

func (c *Commands) SetupStep14(ctx context.Context, step *Step14) error

func (*Commands) SetupStep15

func (c *Commands) SetupStep15(ctx context.Context, step *Step15) error

func (*Commands) SetupStep16

func (c *Commands) SetupStep16(ctx context.Context, step *Step16) error

func (*Commands) SetupStep17

func (c *Commands) SetupStep17(ctx context.Context, step *Step17) error

func (*Commands) SetupStep18

func (c *Commands) SetupStep18(ctx context.Context, step *Step18) error

func (*Commands) SetupStep19

func (c *Commands) SetupStep19(ctx context.Context, step *Step19) error

func (*Commands) SetupStep2

func (c *Commands) SetupStep2(ctx context.Context, step *Step2) error

func (*Commands) SetupStep20

func (c *Commands) SetupStep20(ctx context.Context, step *Step20) error

func (*Commands) SetupStep21

func (c *Commands) SetupStep21(ctx context.Context, step *Step21) error

func (*Commands) SetupStep22

func (c *Commands) SetupStep22(ctx context.Context, step *Step22) error

func (*Commands) SetupStep3

func (c *Commands) SetupStep3(ctx context.Context, step *Step3) error

func (*Commands) SetupStep4

func (c *Commands) SetupStep4(ctx context.Context, step *Step4) error

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) SetupStep5

func (c *Commands) SetupStep5(ctx context.Context, step *Step5) error

func (*Commands) SetupStep6

func (c *Commands) SetupStep6(ctx context.Context, step *Step6) error

func (*Commands) SetupStep7

func (c *Commands) SetupStep7(ctx context.Context, step *Step7) error

func (*Commands) SetupStep8

func (c *Commands) SetupStep8(ctx context.Context, step *Step8) error

func (*Commands) SetupStep9

func (c *Commands) SetupStep9(ctx context.Context, step *Step9) error

func (*Commands) StartSetup

func (c *Commands) StartSetup(ctx context.Context, step domain.Step) (*domain.IAM, error)

func (*Commands) UnlockUser

func (c *Commands) UnlockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) UploadAsset

func (c *Commands) UploadAsset(ctx context.Context, bucketName, objectName, contentType string, file io.Reader, size int64) (*domain.AssetInfo, error)

func (*Commands) UserDomainClaimedSent

func (c *Commands) UserDomainClaimedSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) UserIDPLoginChecked

func (c *Commands) UserIDPLoginChecked(ctx context.Context, orgID, userID string, authRequest *domain.AuthRequest) (err error)

func (*Commands) ValidateOrgDomain

func (c *Commands) ValidateOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.ObjectDetails, error)

func (*Commands) VerifyAPIClientSecret

func (c *Commands) VerifyAPIClientSecret(ctx context.Context, projectID, appID, secret string) (err error)

func (*Commands) VerifyHumanEmail

func (c *Commands) VerifyHumanEmail(ctx context.Context, userID, code, resourceowner string) (*domain.ObjectDetails, error)

func (*Commands) VerifyHumanPhone

func (c *Commands) VerifyHumanPhone(ctx context.Context, userID, code, resourceowner string) (*domain.ObjectDetails, error)

func (*Commands) VerifyOIDCClientSecret

func (c *Commands) VerifyOIDCClientSecret(ctx context.Context, projectID, appID, secret string) (err error)

type Config

type Config struct {
	Eventstore types.SQLUser
}

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

	FooterTOS           string
	FooterPrivacyPolicy string
	FooterHelp          string
	FooterHelpLink      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

type CustomMessageTextReadModel

type CustomMessageTextReadModel struct {
	eventstore.WriteModel

	MessageTextType string
	Language        language.Tag
	Title           string
	PreHeader       string
	Subject         string
	Greeting        string
	Text            string
	ButtonText      string
	FooterText      string

	State domain.PolicyState
}

func (*CustomMessageTextReadModel) Reduce

func (wm *CustomMessageTextReadModel) Reduce() error

type CustomText

type CustomText struct {
	Template   string
	Language   language.Tag
	Title      string
	PreHeader  string
	Subject    string
	Greeting   string
	Text       string
	ButtonText string
	FooterText string
	State      domain.PolicyState
}

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 Domain

type Domain struct {
	Domain   string
	Verified bool
	State    domain.OrgDomainState
}

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 (*ExistingLabelPoliciesReadModel) Reduce

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 (*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 (*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 (*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 (*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 (*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 (*HumanPasswordlessInitCodeWriteModel) Reduce

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 (*HumanPasswordlessLoginReadModel) Reduce

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 (*HumanPasswordlessTokensReadModel) Reduce

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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 (*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,
	defaultRedirectURI string,
) (*iam.LoginPolicyChangedEvent, bool)

func (*IAMLoginPolicyWriteModel) Query

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 (*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 (*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 (*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 (*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 (*IAMPasswordAgePolicyWriteModel) Reduce

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 (*IAMPasswordComplexityPolicyWriteModel) Reduce

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 (*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 (*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 (*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 (*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 (*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 (*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 LoginPolicy struct {
	AllowRegister         bool
	AllowUsernamePassword bool
	AllowExternalIdp      bool
}

type LoginPolicyWriteModel

type LoginPolicyWriteModel struct {
	eventstore.WriteModel

	AllowUserNamePassword  bool
	AllowRegister          bool
	AllowExternalIDP       bool
	ForceMFA               bool
	HidePasswordReset      bool
	IgnoreUnknownUsernames bool
	DefaultRedirectURI     string
	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 (*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 (*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 OIDCApp

type OIDCApp struct {
	Name                   string
	RedirectUris           []string
	ResponseTypes          []string
	GrantTypes             []string
	ApplicationType        string
	AuthMethodType         string
	PostLogoutRedirectUris []string
	DevMode                bool
}

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 (*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 (*ORGOrgIAMPolicyWriteModel) Reduce

func (wm *ORGOrgIAMPolicyWriteModel) Reduce() error

type Org

type Org struct {
	Name         string
	Domain       string
	OrgIamPolicy bool
	Owner        User
	Projects     []Project
}

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 (*OrgAuthFactorsAllowedWriteModel) Reduce

func (*OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel

func (*OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel

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 (*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 (*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 (*OrgCustomMessageTemplatesReadModel) Reduce

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 (*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 (*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 (*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 (*OrgDomainsWriteModel) Reduce

func (wm *OrgDomainsWriteModel) Reduce() error

type OrgFeatureCheckerFunc

type OrgFeatureCheckerFunc func(ctx context.Context, orgID string, requiredFeatures ...string) error

func (OrgFeatureCheckerFunc) CheckOrgFeatures

func (o OrgFeatureCheckerFunc) CheckOrgFeatures(ctx context.Context, orgID string, requiredFeatures ...string) error

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 (*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 (*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 (*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 (*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 (*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 (*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,
	defaultRedirectURI string,
) (*org.LoginPolicyChangedEvent, bool)

func (*OrgLoginPolicyWriteModel) Query

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 (*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 (*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 (*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 (*OrgPasswordAgePolicyWriteModel) Reduce

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 (*OrgPasswordComplexityPolicyWriteModel) Reduce

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 (*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 (*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 (*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

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 (*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 Project

type Project struct {
	Name     string
	Users    []User
	Members  []string
	OIDCApps []OIDCApp
	APIs     []API
}

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 (*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 (*ProjectGrantPreConditionReadModel) Reduce

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 (*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 (*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 (*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 (*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 Step

type Step interface {
	Step() domain.Step
	// contains filtered or unexported methods
}

type Step1

type Step1 struct {
	GlobalOrg          string
	IAMProject         string
	DefaultLoginPolicy LoginPolicy
	Orgs               []Org
}

func (*Step1) Step

func (s *Step1) Step() domain.Step

type Step10

type Step10 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step10) Step

func (s *Step10) Step() domain.Step

type Step11

type Step11 struct {
	MigrateV1EventstoreToV2 bool
}

func (*Step11) Step

func (s *Step11) Step() domain.Step

type Step12

type Step12 struct {
	TierName                 string
	TierDescription          string
	AuditLogRetention        types.Duration
	LoginPolicyFactors       bool
	LoginPolicyIDP           bool
	LoginPolicyPasswordless  bool
	LoginPolicyRegistration  bool
	LoginPolicyUsernameLogin bool
	PasswordComplexityPolicy bool
	LabelPolicy              bool
	CustomDomain             bool
}

func (*Step12) Step

func (s *Step12) Step() domain.Step

type Step13

type Step13 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step13) Step

func (s *Step13) Step() domain.Step

type Step14

type Step14 struct {
	ActivateExistingLabelPolicies bool
}

func (*Step14) Step

func (s *Step14) Step() domain.Step

type Step15

type Step15 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step15) Step

func (s *Step15) Step() domain.Step

type Step16

type Step16 struct {
	DefaultMessageTexts []domain.CustomMessageText
}

func (*Step16) Step

func (s *Step16) Step() domain.Step

type Step17

type Step17 struct {
	PrivacyPolicy domain.PrivacyPolicy
}

func (*Step17) Step

func (s *Step17) Step() domain.Step

type Step18

type Step18 struct {
	LockoutPolicy domain.LockoutPolicy
}

func (*Step18) Step

func (s *Step18) Step() domain.Step

type Step19

type Step19 struct{}

func (*Step19) Step

func (s *Step19) Step() domain.Step

type Step2

type Step2 struct {
	DefaultPasswordComplexityPolicy domain.PasswordComplexityPolicy
}

func (*Step2) Step

func (s *Step2) Step() domain.Step

type Step20

type Step20 struct{}

func (*Step20) Step

func (s *Step20) Step() domain.Step

type Step21

type Step21 struct{}

func (*Step21) Step

func (s *Step21) Step() domain.Step

type Step22

type Step22 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step22) Step

func (s *Step22) Step() domain.Step

type Step3

type Step3 struct {
	DefaultPasswordAgePolicy domain.PasswordAgePolicy
}

func (*Step3) Step

func (s *Step3) Step() domain.Step

type Step4

type Step4 struct {
	DefaultPasswordLockoutPolicy domain.LockoutPolicy
}

func (*Step4) Step

func (s *Step4) Step() domain.Step

type Step5

type Step5 struct {
	DefaultOrgIAMPolicy domain.OrgIAMPolicy
}

func (*Step5) Step

func (s *Step5) Step() domain.Step

type Step6

type Step6 struct {
	DefaultLabelPolicy domain.LabelPolicy
}

func (*Step6) Step

func (s *Step6) Step() domain.Step

type Step7

type Step7 struct {
	OTP bool
}

func (*Step7) Step

func (s *Step7) Step() domain.Step

type Step8

type Step8 struct {
	U2F bool
}

func (*Step8) Step

func (s *Step8) Step() domain.Step

type Step9

type Step9 struct {
	Passwordless bool
}

func (*Step9) Step

func (s *Step9) Step() domain.Step

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 (*UniqueConstraintReadModel) Reduce

func (rm *UniqueConstraintReadModel) Reduce() error

type User

type User struct {
	FirstName string
	LastName  string
	UserName  string
	Email     string
	Password  string
}

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 (*UserAccessTokenWriteModel) Reduce

func (wm *UserAccessTokenWriteModel) Reduce() error

type UserGrantPreConditionReadModel

type UserGrantPreConditionReadModel struct {
	eventstore.WriteModel

	UserID             string
	ProjectID          string
	ProjectGrantID     string
	ResourceOwner      string
	UserExists         bool
	ProjectExists      bool
	ProjectGrantExists bool
	ExistingRoleKeys   []string
}

func NewUserGrantPreConditionReadModel

func NewUserGrantPreConditionReadModel(userID, projectID, projectGrantID, resourceOwner string) *UserGrantPreConditionReadModel

func (*UserGrantPreConditionReadModel) Query

func (*UserGrantPreConditionReadModel) Reduce

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 (*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 (*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 (*UserMetadataByOrgListWriteModel) Reduce

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 (*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 (*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 (*UserWriteModel) Reduce

func (wm *UserWriteModel) Reduce() error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL