mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +00:00
2fe76acd14
This PR adds configuration options for OTP codes through Admin API.
31 lines
727 B
Go
31 lines
727 B
Go
package domain
|
|
|
|
type SecretGeneratorType int32
|
|
|
|
const (
|
|
SecretGeneratorTypeUnspecified SecretGeneratorType = iota
|
|
SecretGeneratorTypeInitCode
|
|
SecretGeneratorTypeVerifyEmailCode
|
|
SecretGeneratorTypeVerifyPhoneCode
|
|
SecretGeneratorTypeVerifyDomain
|
|
SecretGeneratorTypePasswordResetCode
|
|
SecretGeneratorTypePasswordlessInitCode
|
|
SecretGeneratorTypeAppSecret
|
|
SecretGeneratorTypeOTPSMS
|
|
SecretGeneratorTypeOTPEmail
|
|
|
|
secretGeneratorTypeCount
|
|
)
|
|
|
|
func (t SecretGeneratorType) Valid() bool {
|
|
return t > SecretGeneratorTypeUnspecified && t < secretGeneratorTypeCount
|
|
}
|
|
|
|
type SecretGeneratorState int32
|
|
|
|
const (
|
|
SecretGeneratorStateUnspecified SecretGeneratorState = iota
|
|
SecretGeneratorStateActive
|
|
SecretGeneratorStateRemoved
|
|
)
|