feat: auth method projection (#3020)

* feat: auth method projection

* feat: auth method projection

* feat: add tests
This commit is contained in:
Fabi
2022-01-19 14:49:50 +01:00
committed by GitHub
parent c2e6fd8f40
commit 3902f9adb5
6 changed files with 481 additions and 1 deletions

View File

@@ -39,3 +39,17 @@ const (
func (f UserType) Valid() bool {
return f >= 0 && f < userTypeCount
}
type UserAuthMethodType int32
const (
UserAuthMethodTypeUnspecified UserAuthMethodType = iota
UserAuthMethodTypeOTP
UserAuthMethodTypeU2F
UserAuthMethodTypePasswordless
userAuthMethodTypeCount
)
func (f UserAuthMethodType) Valid() bool {
return f >= 0 && f < userAuthMethodTypeCount
}