mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
3c07a186fc
* fix: pub sub in new eventstore * fix: todos * fix: todos * fix: todos * fix: todos * fix: todos
28 lines
400 B
Go
28 lines
400 B
Go
package domain
|
|
|
|
import "github.com/caos/zitadel/internal/crypto"
|
|
|
|
type MFAState int32
|
|
|
|
const (
|
|
MFAStateUnspecified MFAState = iota
|
|
MFAStateNotReady
|
|
MFAStateReady
|
|
MFAStateRemoved
|
|
|
|
stateCount
|
|
)
|
|
|
|
func (f MFAState) Valid() bool {
|
|
return f >= 0 && f < stateCount
|
|
}
|
|
|
|
type MultifactorConfigs struct {
|
|
OTP OTPConfig
|
|
}
|
|
|
|
type OTPConfig struct {
|
|
Issuer string
|
|
CryptoMFA crypto.EncryptionAlgorithm
|
|
}
|