Interface AttemptStateDTO

一次评分式登录尝试的当前状态;由不透明尝试工单回源换取。

NameData TypeRequiredDescription
attemptTicketstringYes尝试工单(不透明,后续因素继续携带)
statusstringYespending 未达标 / satisfied 已达标
scorenumberYes当前累加分数
thresholdnumberYes签发会话所需阈值
verifiedFactorsarrayYes已通过的因素(password / otp / mfa / captcha)
nextFactorsarrayYes按配置仍可选的下一因素
expiresAtstringYes尝试与工单的过期时间
type AttemptStateDTO = {
  /** 尝试工单(不透明,后续因素继续携带) */
  attemptTicket: string
  /** pending 未达标 / satisfied 已达标 */
  status: string
  /** 当前累加分数 */
  score: number
  /** 签发会话所需阈值 */
  threshold: number
  /** 已通过的因素(password / otp / mfa / captcha) */
  verifiedFactors: string[]
  /** 按配置仍可选的下一因素 */
  nextFactors: string[]
  /** 尝试与工单的过期时间 */
  expiresAt: string
}
{
  "attemptTicket": "atk_9f2c7be14d0a53e8",
  "status": "pending",
  "score": 40,
  "threshold": 60,
  "verifiedFactors": [
    "password"
  ],
  "nextFactors": [
    "otp",
    "mfa",
    "captcha"
  ],
  "expiresAt": "2026-10-14T08:10:00Z"
}