A AuthMS API Wiki API Reference iam.tianv.com →

GET /mfa/backup-codes

解密并返回当前用户的全部备用恢复码,需step-up认证。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

MFA `bearerAuth` application/json

Responses

StatusDescriptionSchema
200备用码列表dto.GetBackupCodesDetailResponse
400业务错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证或step-up过期gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.GetBackupCodesDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.GetBackupCodesResponse No
message string No
timestamp string No

dto.GetBackupCodesResponse

FieldTypeRequiredExampleConstraintsDescription
codes array of

string

No ['["12345678"', '"23456789"]']
count integer No 8
message string No Store these codes securely

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No