Documentation
¶
Index ¶
Constants ¶
View Source
const ( AmrTypePwd string = "pwd" // 密码 AmrTypeOtpEmail string = "otp:email" // 邮箱验证码 AmrTypeOtpSms string = "otp:sms" // 短信验证码 AmrTypeOtpTotp string = "otp:totp" // TOTP验证码 AmrTypeDeviceToken string = "device_token" // 硬件验证器 AmrTypeFingerprint string = "fingerprint" // 指纹 AmrTypeFaceId string = "faceid" // 人脸识别 AmrTypeIris string = "iris" // 虹膜识别 AmrTypeVoice string = "voice" // 语音识别 AmrTypeWebAuthUv string = "webauthn_uv" // WebAuthn用户验证器 AmrDeviceBinding string = "device_binding" // 设备绑定 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcrTool ¶
type AcrTool interface {
GetAcrLow() Level
GetAcrMedium() Level
GetAcrHigh() Level
GetRank() map[Level]int
GetLevelCombos() map[Level][][]string
Norm(xs []string) []string
ContainsAll(completed []string, combo []string) bool
AchievedLevel(completed []string) (Level, []string)
Meets(required Level, completed []string) (ok bool, achieved Level, matchedCombo []string)
}
func NewCustomAcrTool ¶
func NewDefaultAcrTool ¶
Click to show internal directories.
Click to hide internal directories.