mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-27 21:34:24 +00:00
feat: features (#1427)
* features * features * features * fix json tags * add features handler to auth * mocks for tests * add setup step * fixes * add featurelist to auth api * grandfather state and typos * typo * merge new-eventstore * fix login policy tests * label policy in features * audit log retention
This commit is contained in:
@@ -160,3 +160,21 @@ func writeModelToIDPProvider(wm *IdentityProviderWriteModel) *domain.IDPProvider
|
||||
Type: wm.IDPProviderType,
|
||||
}
|
||||
}
|
||||
|
||||
func writeModelToFeatures(wm *FeaturesWriteModel) *domain.Features {
|
||||
return &domain.Features{
|
||||
ObjectRoot: writeModelToObjectRoot(wm.WriteModel),
|
||||
TierName: wm.TierName,
|
||||
TierDescription: wm.TierDescription,
|
||||
State: wm.State,
|
||||
StateDescription: wm.StateDescription,
|
||||
AuditLogRetention: wm.AuditLogRetention,
|
||||
LoginPolicyFactors: wm.LoginPolicyFactors,
|
||||
LoginPolicyIDP: wm.LoginPolicyIDP,
|
||||
LoginPolicyPasswordless: wm.LoginPolicyPasswordless,
|
||||
LoginPolicyRegistration: wm.LoginPolicyRegistration,
|
||||
LoginPolicyUsernameLogin: wm.LoginPolicyUsernameLogin,
|
||||
PasswordComplexityPolicy: wm.PasswordComplexityPolicy,
|
||||
LabelPolicy: wm.LabelPolicy,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user