rexAcr

package
v1.0.82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 3 Imported by: 0

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 NewCustomAcrTool(appName string, lowCombos, mediumCombos, highCombos [][]string) AcrTool

func NewDefaultAcrTool

func NewDefaultAcrTool(appName string) AcrTool

type Level

type Level string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL