mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
00220e9532
* begin pw less registration * create pwless one time codes * send pwless link * separate send and add passwordless link * separate send and add passwordless link events * custom message text for passwordless registration * begin custom login texts for passwordless * i18n * i18n message * i18n message * custom message text * custom login text * org design and texts * create link in human import process * fix import human tests * begin passwordless init required step * passwordless init * passwordless init * do not return link in mgmt api * prompt * passwordless init only (no additional prompt) * cleanup * cleanup * add passwordless prompt to custom login text * increase init code complexity * fix grpc * cleanup * fix and add some cases for nextStep tests * fix tests * Update internal/notification/static/i18n/en.yaml * Update internal/notification/static/i18n/de.yaml * Update proto/zitadel/management.proto * Update internal/ui/login/static/i18n/de.yaml * Update internal/ui/login/static/i18n/de.yaml * Update internal/ui/login/static/i18n/de.yaml Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
113 lines
2.9 KiB
Go
113 lines
2.9 KiB
Go
package systemdefaults
|
|
|
|
import (
|
|
"golang.org/x/text/language"
|
|
|
|
"github.com/caos/zitadel/internal/config/types"
|
|
"github.com/caos/zitadel/internal/crypto"
|
|
"github.com/caos/zitadel/internal/notification/providers/chat"
|
|
"github.com/caos/zitadel/internal/notification/providers/email"
|
|
"github.com/caos/zitadel/internal/notification/providers/twilio"
|
|
"github.com/caos/zitadel/internal/notification/templates"
|
|
)
|
|
|
|
type SystemDefaults struct {
|
|
DefaultLanguage language.Tag
|
|
Domain string
|
|
ZitadelDocs ZitadelDocs
|
|
SecretGenerators SecretGenerators
|
|
UserVerificationKey *crypto.KeyConfig
|
|
IDPConfigVerificationKey *crypto.KeyConfig
|
|
Multifactors MultifactorConfig
|
|
VerificationLifetimes VerificationLifetimes
|
|
DomainVerification DomainVerification
|
|
IamID string
|
|
Notifications Notifications
|
|
WebAuthN WebAuthN
|
|
KeyConfig KeyConfig
|
|
}
|
|
|
|
type ZitadelDocs struct {
|
|
Issuer string
|
|
DiscoveryEndpoint string
|
|
}
|
|
|
|
type SecretGenerators struct {
|
|
PasswordSaltCost int
|
|
ClientSecretGenerator crypto.GeneratorConfig
|
|
InitializeUserCode crypto.GeneratorConfig
|
|
EmailVerificationCode crypto.GeneratorConfig
|
|
PhoneVerificationCode crypto.GeneratorConfig
|
|
PasswordVerificationCode crypto.GeneratorConfig
|
|
PasswordlessInitCode crypto.GeneratorConfig
|
|
MachineKeySize uint32
|
|
ApplicationKeySize uint32
|
|
}
|
|
|
|
type MultifactorConfig struct {
|
|
OTP OTPConfig
|
|
}
|
|
|
|
type OTPConfig struct {
|
|
Issuer string
|
|
VerificationKey *crypto.KeyConfig
|
|
}
|
|
|
|
type VerificationLifetimes struct {
|
|
PasswordCheck types.Duration
|
|
ExternalLoginCheck types.Duration
|
|
MFAInitSkip types.Duration
|
|
SecondFactorCheck types.Duration
|
|
MultiFactorCheck types.Duration
|
|
}
|
|
|
|
type DomainVerification struct {
|
|
VerificationKey *crypto.KeyConfig
|
|
VerificationGenerator crypto.GeneratorConfig
|
|
}
|
|
|
|
type Notifications struct {
|
|
DebugMode bool
|
|
Endpoints Endpoints
|
|
Providers Providers
|
|
TemplateData TemplateData
|
|
}
|
|
|
|
type Endpoints struct {
|
|
InitCode string
|
|
PasswordReset string
|
|
VerifyEmail string
|
|
DomainClaimed string
|
|
PasswordlessRegistration string
|
|
}
|
|
|
|
type Providers struct {
|
|
Chat chat.ChatConfig
|
|
Email email.EmailConfig
|
|
Twilio twilio.TwilioConfig
|
|
}
|
|
|
|
type TemplateData struct {
|
|
InitCode templates.TemplateData
|
|
PasswordReset templates.TemplateData
|
|
VerifyEmail templates.TemplateData
|
|
VerifyPhone templates.TemplateData
|
|
DomainClaimed templates.TemplateData
|
|
}
|
|
|
|
type WebAuthN struct {
|
|
ID string
|
|
OriginLogin string
|
|
OriginConsole string
|
|
DisplayName string
|
|
}
|
|
|
|
type KeyConfig struct {
|
|
Size int
|
|
PrivateKeyLifetime types.Duration
|
|
PublicKeyLifetime types.Duration
|
|
EncryptionConfig *crypto.KeyConfig
|
|
SigningKeyRotationCheck types.Duration
|
|
SigningKeyGracefulPeriod types.Duration
|
|
}
|