mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
f05d4063bf
* feat: add login check lifetimes to login policy * feat: org features test * feat: read lifetimes from loginpolicy
92 lines
2.2 KiB
Go
92 lines
2.2 KiB
Go
package systemdefaults
|
|
|
|
import (
|
|
"time"
|
|
|
|
"golang.org/x/text/language"
|
|
|
|
"github.com/caos/zitadel/internal/crypto"
|
|
"github.com/caos/zitadel/internal/notification/channels/chat"
|
|
"github.com/caos/zitadel/internal/notification/channels/fs"
|
|
"github.com/caos/zitadel/internal/notification/channels/log"
|
|
"github.com/caos/zitadel/internal/notification/channels/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
|
|
SMTPPasswordVerificationKey *crypto.KeyConfig
|
|
SMSVerificationKey *crypto.KeyConfig
|
|
Multifactors MultifactorConfig
|
|
DomainVerification DomainVerification
|
|
Notifications Notifications
|
|
KeyConfig KeyConfig
|
|
}
|
|
|
|
type ZitadelDocs struct {
|
|
Issuer string
|
|
DiscoveryEndpoint string
|
|
}
|
|
|
|
type SecretGenerators struct {
|
|
PasswordSaltCost int
|
|
MachineKeySize uint32
|
|
ApplicationKeySize uint32
|
|
}
|
|
|
|
type MultifactorConfig struct {
|
|
OTP OTPConfig
|
|
}
|
|
|
|
type OTPConfig struct {
|
|
Issuer string
|
|
VerificationKey *crypto.KeyConfig
|
|
}
|
|
|
|
type DomainVerification struct {
|
|
VerificationKey *crypto.KeyConfig
|
|
VerificationGenerator crypto.GeneratorConfig
|
|
}
|
|
|
|
type Notifications struct {
|
|
DebugMode bool
|
|
Endpoints Endpoints
|
|
Providers Channels
|
|
}
|
|
|
|
type Endpoints struct {
|
|
InitCode string
|
|
PasswordReset string
|
|
VerifyEmail string
|
|
DomainClaimed string
|
|
PasswordlessRegistration string
|
|
}
|
|
|
|
type Channels struct {
|
|
Chat chat.ChatConfig
|
|
Twilio twilio.TwilioConfig
|
|
FileSystem fs.FSConfig
|
|
Log log.LogConfig
|
|
}
|
|
|
|
type TemplateData struct {
|
|
InitCode templates.TemplateData
|
|
PasswordReset templates.TemplateData
|
|
VerifyEmail templates.TemplateData
|
|
VerifyPhone templates.TemplateData
|
|
DomainClaimed templates.TemplateData
|
|
}
|
|
|
|
type KeyConfig struct {
|
|
Size int
|
|
PrivateKeyLifetime time.Duration
|
|
PublicKeyLifetime time.Duration
|
|
SigningKeyRotationCheck time.Duration
|
|
SigningKeyGracefulPeriod time.Duration
|
|
}
|