mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
cea2567e22
* add/register human command done * validations * crypto * move clientid * keys * fix: clientID * remove v2 package * tests * tests running * revert old code * instance domain from ctx * chore: rename zitadel app ids * comments * fix: test
29 lines
671 B
Go
29 lines
671 B
Go
package domain
|
|
|
|
type SecretGeneratorType int32
|
|
|
|
const (
|
|
SecretGeneratorTypeUnspecified SecretGeneratorType = iota
|
|
SecretGeneratorTypeInitCode
|
|
SecretGeneratorTypeVerifyEmailCode
|
|
SecretGeneratorTypeVerifyPhoneCode
|
|
SecretGeneratorTypeVerifyDomain
|
|
SecretGeneratorTypePasswordResetCode
|
|
SecretGeneratorTypePasswordlessInitCode
|
|
SecretGeneratorTypeAppSecret
|
|
|
|
secretGeneratorTypeCount
|
|
)
|
|
|
|
func (t SecretGeneratorType) Valid() bool {
|
|
return t > SecretGeneratorTypeUnspecified && t < secretGeneratorTypeCount
|
|
}
|
|
|
|
type SecretGeneratorState int32
|
|
|
|
const (
|
|
SecretGeneratorStateUnspecified SecretGeneratorState = iota
|
|
SecretGeneratorStateActive
|
|
SecretGeneratorStateRemoved
|
|
)
|