mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-23 00:07:31 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
28 lines
403 B
Go
28 lines
403 B
Go
package domain
|
|
|
|
import "github.com/zitadel/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
|
|
}
|