command

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 32 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 AppendAndReduce

func AppendAndReduce(object interface {
	AppendEvents(...eventstore.EventReader)
	Reduce() error
}, events ...eventstore.EventReader) 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 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.EventReader)

func (*APIApplicationWriteModel) IsAPI added in v1.17.1

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 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.EventReader)

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.EventReader)

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(eventstore *eventstore.Eventstore, defaults sd.SystemDefaults, authZConfig authz.Config, staticStore static.Storage, authZRepo *authz_repo.EsRepository) (repo *Commands, err error)

func (*Commands) ActivateDefaultLabelPolicy added in v1.12.0

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

func (*Commands) ActivateLabelPolicy added in v1.12.0

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 added in v1.8.0

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) (*domain.Token, string, 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) 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) AddDefaultPasswordLockoutPolicy

func (c *Commands) AddDefaultPasswordLockoutPolicy(ctx context.Context, policy *domain.PasswordLockoutPolicy) (*domain.PasswordLockoutPolicy, error)

func (*Commands) AddDefaultPrivacyPolicy added in v1.18.0

func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) AddFontDefaultLabelPolicy added in v1.12.0

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

func (*Commands) AddFontLabelPolicy added in v1.12.0

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 added in v1.12.0

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 added in v1.12.0

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

func (*Commands) AddIconDarkLabelPolicy added in v1.12.0

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

func (*Commands) AddIconDefaultLabelPolicy added in v1.12.0

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

func (*Commands) AddIconLabelPolicy added in v1.12.0

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

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

func (*Commands) AddLogoDarkDefaultLabelPolicy added in v1.12.0

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

func (*Commands) AddLogoDarkLabelPolicy added in v1.12.0

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

func (*Commands) AddLogoDefaultLabelPolicy added in v1.12.0

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

func (*Commands) AddLogoLabelPolicy added in v1.12.0

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

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

func (*Commands) AddPrivacyPolicy added in v1.18.0

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

func (c *Commands) BulkAddedHumanExternalIDP(ctx context.Context, userID, resourceOwner string, externalIDPs []*domain.ExternalIDP) (err error)

func (*Commands) BulkRemoveUserGrant

func (c *Commands) BulkRemoveUserGrant(ctx context.Context, grantIDs []string, resourceOwner string) (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) 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) 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) 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) ChangeDefaultPasswordLockoutPolicy

func (c *Commands) ChangeDefaultPasswordLockoutPolicy(ctx context.Context, policy *domain.PasswordLockoutPolicy) (*domain.PasswordLockoutPolicy, error)

func (*Commands) ChangeDefaultPrivacyPolicy added in v1.18.0

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) 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) 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 added in v1.6.1

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

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

func (*Commands) ChangePrivacyPolicy added in v1.18.0

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

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

func (*Commands) HumanEmailVerificationCodeSent

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

func (*Commands) HumanExternalLoginChecked

func (c *Commands) HumanExternalLoginChecked(ctx context.Context, orgID, userID string, authRequest *domain.AuthRequest) (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) 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) 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) (*domain.Human, 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) 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, externalIDP *domain.ExternalIDP, 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 added in v1.12.0

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

func (*Commands) RemoveAssetsFolder added in v1.12.4

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

func (*Commands) RemoveDefaultIDPConfig

func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, externalIDPs ...*domain.ExternalIDP) (*domain.ObjectDetails, error)

func (*Commands) RemoveFontDefaultLabelPolicy added in v1.12.0

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

func (*Commands) RemoveFontLabelPolicy added in v1.12.0

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

func (*Commands) RemoveHumanAvatar added in v1.12.0

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

func (*Commands) RemoveHumanExternalIDP

func (c *Commands) RemoveHumanExternalIDP(ctx context.Context, externalIDP *domain.ExternalIDP) (*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) RemoveIDPConfig

func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, cascadeExternalIDPs ...*domain.ExternalIDP) (*domain.ObjectDetails, error)

func (*Commands) RemoveIDPProviderFromDefaultLoginPolicy

func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.ExternalIDP) (*domain.ObjectDetails, error)

func (*Commands) RemoveIDPProviderFromLoginPolicy

func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.ExternalIDP) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDarkDefaultLabelPolicy added in v1.12.0

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

func (*Commands) RemoveIconDarkLabelPolicy added in v1.12.0

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

func (*Commands) RemoveIconDefaultLabelPolicy added in v1.12.0

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

func (*Commands) RemoveIconLabelPolicy added in v1.12.0

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

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

func (*Commands) RemoveLogoDarkDefaultLabelPolicy added in v1.12.0

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

func (*Commands) RemoveLogoDarkLabelPolicy added in v1.12.0

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

func (*Commands) RemoveLogoDefaultLabelPolicy added in v1.12.0

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

func (*Commands) RemoveLogoLabelPolicy added in v1.12.0

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 added in v1.19.0

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 added in v1.13.0

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

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

func (*Commands) RemovePrivacyPolicy added in v1.18.0

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 []*domain.UserMembership, cascadingGrantIDs ...string) (*domain.ObjectDetails, error)

func (*Commands) RemoveUserGrant

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

func (*Commands) RemoveUserMachineKey

func (c *Commands) RemoveUserMachineKey(ctx context.Context, userID, keyID, resourceOwner string) (*domain.ObjectDetails, 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) RevokeRefreshToken added in v1.8.0

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

func (*Commands) RevokeRefreshTokens added in v1.8.0

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

func (*Commands) SetCustomIAMLoginText added in v1.19.0

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 added in v1.13.0

func (c *Commands) SetDefaultMessageText(ctx context.Context, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)

func (*Commands) SetIAMCustomText added in v1.19.0

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 added in v1.19.0

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

func (*Commands) SetOrgMessageText added in v1.13.0

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 added in v1.11.1

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

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

func (*Commands) SetupStep1

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

func (*Commands) SetupStep2

func (c *Commands) SetupStep2(ctx context.Context, step *Step2) 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

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) 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 added in v0.122.0

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

func (*Commands) SetupStep14 added in v1.12.0

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

func (*Commands) SetupStep15 added in v1.12.0

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

func (*Commands) SetupStep16 added in v1.13.0

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

func (*Commands) SetupStep17 added in v1.18.0

func (c *Commands) SetupStep17(ctx context.Context, step *Step17) 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 added in v1.12.0

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

func (c *Commands) ValidateOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.ObjectDetails, 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 added in v1.19.0

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

	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
	RegistrationUserPrivacyConfirm           string
	RegistrationUserPrivacyLink              string
	RegistrationUserPrivacyLinkText          string
	RegistrationUserExternalLoginDescription string
	RegistrationUserNextButtonText           string
	RegistrationUserBackButtonText           string

	RegisterOrgTitle                    string
	RegisterOrgDescription              string
	RegisterOrgOrgNameLabel             string
	RegisterOrgFirstnameLabel           string
	RegisterOrgLastnameLabel            string
	RegisterOrgUsernameLabel            string
	RegisterOrgEmailLabel               string
	RegisterOrgPasswordLabel            string
	RegisterOrgPasswordConfirmLabel     string
	RegisterOrgTOSAndPrivacyLabel       string
	RegisterOrgTOSConfirm               string
	RegisterOrgTOSLink                  string
	RegisterOrgTOSLinkText              string
	RegisterOrgPrivacyConfirm           string
	RegisterOrgPrivacyLink              string
	RegisterOrgPrivacyLinkText          string
	RegisterOrgExternalLoginDescription string
	RegisterOrgSaveButtonText           string

	LinkingUserDoneTitle            string
	LinkingUserDoneDescription      string
	LinkingUserDoneCancelButtonText string
	LinkingUserDoneNextButtonText   string

	ExternalUserNotFoundTitle                  string
	ExternalUserNotFoundDescription            string
	ExternalUserNotFoundLinkButtonText         string
	ExternalUserNotFoundAutoRegisterButtonText string

	SuccessLoginTitle                   string
	SuccessLoginAutoRedirectDescription string
	SuccessLoginRedirectedDescription   string
	SuccessLoginNextButtonText          string

	LogoutDoneTitle           string
	LogoutDoneDescription     string
	LogoutDoneLoginButtonText string

	FooterTOS               string
	FooterTOSLink           string
	FooterPrivacyPolicy     string
	FooterPrivacyPolicyLink string
	FooterHelp              string
	FooterHelpLink          string
}

func (*CustomLoginTextReadModel) Reduce added in v1.19.0

func (wm *CustomLoginTextReadModel) Reduce() error

type CustomMessageTemplatesReadModel added in v1.13.0

type CustomMessageTemplatesReadModel struct {
	eventstore.WriteModel
	CustomMessageTemplate map[string]*CustomText
}

func (*CustomMessageTemplatesReadModel) Reduce added in v1.13.0

type CustomMessageTextReadModel added in v1.13.0

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 added in v1.13.0

func (wm *CustomMessageTextReadModel) Reduce() error

type CustomText added in v1.13.0

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 added in v1.13.0

type CustomTextWriteModel struct {
	eventstore.WriteModel

	Key      string
	Language language.Tag
	Text     string
	State    domain.CustomTextState
}

func (*CustomTextWriteModel) Reduce added in v1.13.0

func (wm *CustomTextWriteModel) Reduce() error

type Domain added in v0.123.0

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

type ExistingLabelPoliciesReadModel added in v1.12.0

type ExistingLabelPoliciesReadModel struct {
	eventstore.WriteModel
	// contains filtered or unexported fields
}

func NewExistingLabelPoliciesReadModel added in v1.12.0

func NewExistingLabelPoliciesReadModel(ctx context.Context) *ExistingLabelPoliciesReadModel

func (*ExistingLabelPoliciesReadModel) AppendEvents added in v1.12.0

func (rm *ExistingLabelPoliciesReadModel) AppendEvents(events ...eventstore.EventReader)

func (*ExistingLabelPoliciesReadModel) Query added in v1.12.0

func (*ExistingLabelPoliciesReadModel) Reduce added in v1.12.0

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
	CustomText               bool
	PrivacyPolicy            bool
}

func (*FeaturesWriteModel) Reduce

func (wm *FeaturesWriteModel) 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 HumanExternalIDPWriteModel

type HumanExternalIDPWriteModel struct {
	eventstore.WriteModel

	IDPConfigID    string
	ExternalUserID string
	DisplayName    string

	State domain.ExternalIDPState
}

func NewHumanExternalIDPWriteModel

func NewHumanExternalIDPWriteModel(userID, idpConfigID, externalUserID, resourceOwner string) *HumanExternalIDPWriteModel

func (*HumanExternalIDPWriteModel) Query

func (*HumanExternalIDPWriteModel) Reduce

func (wm *HumanExternalIDPWriteModel) 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

	UserState domain.UserState
}

func NewHumanPasswordWriteModel

func NewHumanPasswordWriteModel(userID, resourceOwner string) *HumanPasswordWriteModel

func (*HumanPasswordWriteModel) Query

func (*HumanPasswordWriteModel) Reduce

func (wm *HumanPasswordWriteModel) Reduce() error

type HumanPasswordlessLoginReadModel

type HumanPasswordlessLoginReadModel struct {
	eventstore.WriteModel

	AuthReqID            string
	Challenge            string
	AllowedCredentialIDs [][]byte
	UserVerification     domain.UserVerificationRequirement
	State                domain.UserState
}

func NewHumanPasswordlessLoginReadModel

func NewHumanPasswordlessLoginReadModel(userID, authReqID, resourceOwner string) *HumanPasswordlessLoginReadModel

func (*HumanPasswordlessLoginReadModel) AppendEvents

func (wm *HumanPasswordlessLoginReadModel) AppendEvents(events ...eventstore.EventReader)

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.EventReader)

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 added in v1.8.0

type HumanRefreshTokenWriteModel struct {
	eventstore.WriteModel

	TokenID      string
	RefreshToken string

	UserState      domain.UserState
	IdleExpiration time.Time
	Expiration     time.Time
}

func NewHumanRefreshTokenWriteModel added in v1.8.0

func NewHumanRefreshTokenWriteModel(userID, resourceOwner, tokenID string) *HumanRefreshTokenWriteModel

func (*HumanRefreshTokenWriteModel) AppendEvents added in v1.8.0

func (wm *HumanRefreshTokenWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*HumanRefreshTokenWriteModel) Query added in v1.8.0

func (*HumanRefreshTokenWriteModel) Reduce added in v1.8.0

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.EventReader)

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.EventReader)

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.EventReader)

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 added in v1.19.0

type IAMCustomLoginTextReadModel struct {
	CustomLoginTextReadModel
}

func NewIAMCustomLoginTextReadModel added in v1.19.0

func NewIAMCustomLoginTextReadModel(lang language.Tag) *IAMCustomLoginTextReadModel

func (*IAMCustomLoginTextReadModel) AppendEvents added in v1.19.0

func (wm *IAMCustomLoginTextReadModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMCustomLoginTextReadModel) Query added in v1.19.0

func (*IAMCustomLoginTextReadModel) Reduce added in v1.19.0

func (wm *IAMCustomLoginTextReadModel) Reduce() error

type IAMCustomMessageTextReadModel added in v1.13.0

type IAMCustomMessageTextReadModel struct {
	CustomMessageTextReadModel
}

func NewIAMCustomMessageTextWriteModel added in v1.13.0

func NewIAMCustomMessageTextWriteModel(messageTextType string, lang language.Tag) *IAMCustomMessageTextReadModel

func (*IAMCustomMessageTextReadModel) AppendEvents added in v1.13.0

func (wm *IAMCustomMessageTextReadModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMCustomMessageTextReadModel) Query added in v1.13.0

func (*IAMCustomMessageTextReadModel) Reduce added in v1.13.0

func (wm *IAMCustomMessageTextReadModel) Reduce() error

type IAMCustomTextWriteModel added in v1.19.0

type IAMCustomTextWriteModel struct {
	CustomTextWriteModel
}

func NewIAMCustomTextWriteModel added in v1.19.0

func NewIAMCustomTextWriteModel(key string, language language.Tag) *IAMCustomTextWriteModel

func (*IAMCustomTextWriteModel) AppendEvents added in v1.19.0

func (wm *IAMCustomTextWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMCustomTextWriteModel) Query added in v1.19.0

func (*IAMCustomTextWriteModel) Reduce added in v1.19.0

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.EventReader)

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,
	passwordComplexityPolicy,
	labelPolicyPrivateLabel,
	labelPolicyWatermark,
	customDomain,
	customText,
	privacyPolicy bool,
) (*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.EventReader) error

func (*IAMIDPConfigWriteModel) AppendEvents

func (wm *IAMIDPConfigWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMIDPConfigWriteModel) NewChangedEvent

func (wm *IAMIDPConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
	stylingType domain.IDPConfigStylingType,
) (*iam.IDPConfigChangedEvent, bool)

func (*IAMIDPConfigWriteModel) Query

func (*IAMIDPConfigWriteModel) Reduce

func (wm *IAMIDPConfigWriteModel) Reduce() error

type IAMIDPOIDCConfigWriteModel

type IAMIDPOIDCConfigWriteModel struct {
	OIDCConfigWriteModel
}

func NewIAMIDPOIDCConfigWriteModel

func NewIAMIDPOIDCConfigWriteModel(idpConfigID string) *IAMIDPOIDCConfigWriteModel

func (*IAMIDPOIDCConfigWriteModel) AppendEvents

func (wm *IAMIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.EventReader)

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.EventReader)

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.EventReader)

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 IAMLoginPolicyWriteModel

type IAMLoginPolicyWriteModel struct {
	LoginPolicyWriteModel
}

func NewIAMLoginPolicyWriteModel

func NewIAMLoginPolicyWriteModel() *IAMLoginPolicyWriteModel

func (*IAMLoginPolicyWriteModel) AppendEvents

func (wm *IAMLoginPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

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 bool,
	passwordlessType domain.PasswordlessType,
) (*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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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 IAMPasswordLockoutPolicyWriteModel

type IAMPasswordLockoutPolicyWriteModel struct {
	PasswordLockoutPolicyWriteModel
}

func NewIAMPasswordLockoutPolicyWriteModel

func NewIAMPasswordLockoutPolicyWriteModel() *IAMPasswordLockoutPolicyWriteModel

func (*IAMPasswordLockoutPolicyWriteModel) AppendEvents

func (wm *IAMPasswordLockoutPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMPasswordLockoutPolicyWriteModel) NewChangedEvent

func (wm *IAMPasswordLockoutPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool) (*iam.PasswordLockoutPolicyChangedEvent, bool)

func (*IAMPasswordLockoutPolicyWriteModel) Query

func (*IAMPasswordLockoutPolicyWriteModel) Reduce

type IAMPrivacyPolicyWriteModel added in v1.18.0

type IAMPrivacyPolicyWriteModel struct {
	PrivacyPolicyWriteModel
}

func NewIAMPrivacyPolicyWriteModel added in v1.18.0

func NewIAMPrivacyPolicyWriteModel() *IAMPrivacyPolicyWriteModel

func (*IAMPrivacyPolicyWriteModel) AppendEvents added in v1.18.0

func (wm *IAMPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*IAMPrivacyPolicyWriteModel) NewChangedEvent added in v1.18.0

func (wm *IAMPrivacyPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tosLink,
	privacyLink string,
) (*iam.PrivacyPolicyChangedEvent, bool)

func (*IAMPrivacyPolicyWriteModel) Query added in v1.18.0

func (*IAMPrivacyPolicyWriteModel) Reduce added in v1.18.0

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.EventReader)

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
	StylingType domain.IDPConfigStylingType
}

func (*IDPConfigWriteModel) AppendEvents

func (rm *IDPConfigWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*IDPConfigWriteModel) Reduce

func (rm *IDPConfigWriteModel) 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.EventReader)

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 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.EventReader)

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 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
	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.EventReader)

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 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.EventReader)

func (*OIDCApplicationWriteModel) IsOIDC added in v1.17.1

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.EventReader)

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 added in v0.119.6

type OrgAuthFactorsAllowedWriteModel struct {
	eventstore.WriteModel
	SecondFactors map[domain.SecondFactorType]*factorState
	MultiFactors  map[domain.MultiFactorType]*factorState
}

func NewOrgAuthFactorsAllowedWriteModel added in v0.119.6

func NewOrgAuthFactorsAllowedWriteModel(orgID string) *OrgAuthFactorsAllowedWriteModel

func (*OrgAuthFactorsAllowedWriteModel) Query added in v0.119.6

func (*OrgAuthFactorsAllowedWriteModel) Reduce added in v0.119.6

func (*OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel added in v0.119.6

func (*OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel added in v0.119.6

type OrgCustomLoginTextReadModel added in v1.19.0

type OrgCustomLoginTextReadModel struct {
	CustomLoginTextReadModel
}

func NewOrgCustomLoginTextReadModel added in v1.19.0

func NewOrgCustomLoginTextReadModel(orgID string, lang language.Tag) *OrgCustomLoginTextReadModel

func (*OrgCustomLoginTextReadModel) AppendEvents added in v1.19.0

func (wm *OrgCustomLoginTextReadModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgCustomLoginTextReadModel) Query added in v1.19.0

func (*OrgCustomLoginTextReadModel) Reduce added in v1.19.0

func (wm *OrgCustomLoginTextReadModel) Reduce() error

type OrgCustomMessageTemplatesReadModel added in v1.13.0

type OrgCustomMessageTemplatesReadModel struct {
	CustomMessageTemplatesReadModel
}

func NewOrgCustomMessageTextsWriteModel added in v1.13.0

func NewOrgCustomMessageTextsWriteModel(orgID string) *OrgCustomMessageTemplatesReadModel

func (*OrgCustomMessageTemplatesReadModel) AppendEvents added in v1.13.0

func (wm *OrgCustomMessageTemplatesReadModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgCustomMessageTemplatesReadModel) Query added in v1.13.0

func (*OrgCustomMessageTemplatesReadModel) Reduce added in v1.13.0

type OrgCustomMessageTextReadModel added in v1.13.0

type OrgCustomMessageTextReadModel struct {
	CustomMessageTextReadModel
}

func NewOrgCustomMessageTextWriteModel added in v1.13.0

func NewOrgCustomMessageTextWriteModel(orgID, messageTextType string, lang language.Tag) *OrgCustomMessageTextReadModel

func (*OrgCustomMessageTextReadModel) AppendEvents added in v1.13.0

func (wm *OrgCustomMessageTextReadModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgCustomMessageTextReadModel) Query added in v1.13.0

func (*OrgCustomMessageTextReadModel) Reduce added in v1.13.0

func (wm *OrgCustomMessageTextReadModel) 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.EventReader)

func (*OrgDomainWriteModel) Query

func (*OrgDomainWriteModel) Reduce

func (wm *OrgDomainWriteModel) Reduce() error

type OrgDomainsWriteModel added in v0.123.0

type OrgDomainsWriteModel struct {
	eventstore.WriteModel

	Domains       []*Domain
	PrimaryDomain string
	OrgName       string
}

func NewOrgDomainsWriteModel added in v0.123.0

func NewOrgDomainsWriteModel(orgID string) *OrgDomainsWriteModel

func (*OrgDomainsWriteModel) Query added in v0.123.0

func (*OrgDomainsWriteModel) Reduce added in v0.123.0

func (wm *OrgDomainsWriteModel) Reduce() error

type OrgFeaturesWriteModel

type OrgFeaturesWriteModel struct {
	FeaturesWriteModel
}

func NewOrgFeaturesWriteModel

func NewOrgFeaturesWriteModel(orgID string) *OrgFeaturesWriteModel

func (*OrgFeaturesWriteModel) AppendEvents

func (wm *OrgFeaturesWriteModel) AppendEvents(events ...eventstore.EventReader)

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,
	customText,
	privacyPolicy bool,
) (*org.FeaturesSetEvent, bool)

func (*OrgFeaturesWriteModel) Query

func (*OrgFeaturesWriteModel) Reduce

func (wm *OrgFeaturesWriteModel) 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.EventReader) error

func (*OrgIDPConfigWriteModel) AppendEvents

func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgIDPConfigWriteModel) NewChangedEvent

func (wm *OrgIDPConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
	stylingType domain.IDPConfigStylingType,
) (*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.EventReader)

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.EventReader)

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 OrgLoginPolicyWriteModel

type OrgLoginPolicyWriteModel struct {
	LoginPolicyWriteModel
}

func NewOrgLoginPolicyWriteModel

func NewOrgLoginPolicyWriteModel(orgID string) *OrgLoginPolicyWriteModel

func (*OrgLoginPolicyWriteModel) AppendEvents

func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

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 bool,
	passwordlessType domain.PasswordlessType,
) (*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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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 OrgPasswordLockoutPolicyWriteModel

type OrgPasswordLockoutPolicyWriteModel struct {
	PasswordLockoutPolicyWriteModel
}

func NewOrgPasswordLockoutPolicyWriteModel

func NewOrgPasswordLockoutPolicyWriteModel(orgID string) *OrgPasswordLockoutPolicyWriteModel

func (*OrgPasswordLockoutPolicyWriteModel) AppendEvents

func (wm *OrgPasswordLockoutPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgPasswordLockoutPolicyWriteModel) NewChangedEvent

func (wm *OrgPasswordLockoutPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool) (*org.PasswordLockoutPolicyChangedEvent, bool)

func (*OrgPasswordLockoutPolicyWriteModel) Query

func (*OrgPasswordLockoutPolicyWriteModel) Reduce

type OrgPrivacyPolicyWriteModel added in v1.18.0

type OrgPrivacyPolicyWriteModel struct {
	PrivacyPolicyWriteModel
}

func NewOrgPrivacyPolicyWriteModel added in v1.18.0

func NewOrgPrivacyPolicyWriteModel(orgID string) *OrgPrivacyPolicyWriteModel

func (*OrgPrivacyPolicyWriteModel) AppendEvents added in v1.18.0

func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.EventReader)

func (*OrgPrivacyPolicyWriteModel) NewChangedEvent added in v1.18.0

func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tosLink,
	privacyLink string,
) (*org.PrivacyPolicyChangedEvent, bool)

func (*OrgPrivacyPolicyWriteModel) Query added in v1.18.0

func (*OrgPrivacyPolicyWriteModel) Reduce added in v1.18.0

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.EventReader)

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 PasswordLockoutPolicyWriteModel

type PasswordLockoutPolicyWriteModel struct {
	eventstore.WriteModel

	MaxAttempts         uint64
	ShowLockOutFailures bool
	State               domain.PolicyState
}

func (*PasswordLockoutPolicyWriteModel) Reduce

type PolicyOrgIAMWriteModel

type PolicyOrgIAMWriteModel struct {
	eventstore.WriteModel

	UserLoginMustBeDomain bool
	State                 domain.PolicyState
}

func (*PolicyOrgIAMWriteModel) Reduce

func (wm *PolicyOrgIAMWriteModel) Reduce() error

type PrivacyPolicyWriteModel added in v1.18.0

type PrivacyPolicyWriteModel struct {
	eventstore.WriteModel

	TOSLink     string
	PrivacyLink string
	State       domain.PolicyState
}

func (*PrivacyPolicyWriteModel) Reduce added in v1.18.0

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.EventReader)

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.EventReader)

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.EventReader)

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.EventReader)

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
	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 bool,
) (*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 Step2

type Step2 struct {
	DefaultPasswordComplexityPolicy domain.PasswordComplexityPolicy
}

func (*Step2) Step

func (s *Step2) 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.PasswordLockoutPolicy
}

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 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 added in v0.122.0

type Step13 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step13) Step added in v0.122.0

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

type Step14 added in v1.12.0

type Step14 struct {
	ActivateExistingLabelPolicies bool
}

func (*Step14) Step added in v1.12.0

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

type Step15 added in v1.12.0

type Step15 struct {
	DefaultMailTemplate domain.MailTemplate
}

func (*Step15) Step added in v1.12.0

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

type Step16 added in v1.13.0

type Step16 struct {
	DefaultMessageTexts []domain.CustomMessageText
}

func (*Step16) Step added in v1.13.0

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

type Step17 added in v1.18.0

type Step17 struct {
	PrivacyPolicy domain.PrivacyPolicy
}

func (*Step17) Step added in v1.18.0

func (s *Step17) 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.EventReader)

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 UserGrantPreConditionReadModel

type UserGrantPreConditionReadModel struct {
	eventstore.WriteModel

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

func NewUserGrantPreConditionReadModel

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

func (*UserGrantPreConditionReadModel) Query

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

type UserWriteModel struct {
	eventstore.WriteModel

	UserName  string
	UserState domain.UserState
}

func NewUserWriteModel

func NewUserWriteModel(userID, resourceOwner string) *UserWriteModel

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