mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
bdf3887f9e
* feat: default custom message text * feat: org custom message text * feat: org custom message text * feat: custom messages query side * feat: default messages * feat: message text user fields * feat: check for inactive user * feat: fix send password reset * feat: fix custom org text * feat: add variables to docs * feat: custom text tests * feat: fix notifications * feat: add custom text feature * feat: add custom text feature * feat: feature in custom message texts * feat: add custom text feature in frontend * feat: merge main * feat: feature tests * feat: change phone message in setup * fix: remove unused code, add event translation * fix: merge main and fix problems * fix: english translation file * fix: migration versions * fix: setup * feat: fix pr requests * feat: fix phone code message * feat: migration * feat: setup * fix: remove unused tests Co-authored-by: Livio Amstutz <livio.a@gmail.com>
64 lines
1.8 KiB
Go
64 lines
1.8 KiB
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
es_models "github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
)
|
|
|
|
const (
|
|
FeatureLoginPolicy = "login_policy"
|
|
FeatureLoginPolicyFactors = FeatureLoginPolicy + ".factors"
|
|
FeatureLoginPolicyIDP = FeatureLoginPolicy + ".idp"
|
|
FeatureLoginPolicyPasswordless = FeatureLoginPolicy + ".passwordless"
|
|
FeatureLoginPolicyRegistration = FeatureLoginPolicy + ".registration"
|
|
FeatureLoginPolicyUsernameLogin = FeatureLoginPolicy + ".username_login"
|
|
FeatureLoginPolicyPasswordReset = FeatureLoginPolicy + ".password_reset"
|
|
FeaturePasswordComplexityPolicy = "password_complexity_policy"
|
|
FeatureLabelPolicy = "label_policy"
|
|
FeatureLabelPolicyPrivateLabel = FeatureLabelPolicy + ".private_label"
|
|
FeatureLabelPolicyWatermark = FeatureLabelPolicy + ".watermark"
|
|
FeatureCustomText = "custom_text"
|
|
FeatureCustomDomain = "custom_domain"
|
|
)
|
|
|
|
type Features struct {
|
|
es_models.ObjectRoot
|
|
|
|
TierName string
|
|
TierDescription string
|
|
State FeaturesState
|
|
StateDescription string
|
|
IsDefault bool
|
|
|
|
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
|
|
}
|
|
|
|
type FeaturesState int32
|
|
|
|
const (
|
|
FeaturesStateUnspecified FeaturesState = iota
|
|
FeaturesStateActive
|
|
FeaturesStateActionRequired
|
|
FeaturesStateCanceled
|
|
FeaturesStateGrandfathered
|
|
FeaturesStateRemoved
|
|
|
|
featuresStateCount
|
|
)
|
|
|
|
func (f FeaturesState) Valid() bool {
|
|
return f >= 0 && f < featuresStateCount
|
|
}
|