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

POST /mfa/webauthn/credentials/register/verify

验证 attestation 响应并存储凭证。需要先调用 /mfa/webauthn/credentials/register 获取 creation options。

MFA `bearerAuth` application/json

Request Body

Schema: dto.FinishWebAuthnRegistrationRequest

FieldTypeRequiredExampleConstraintsDescription
id string Yes
raw_id string Yes
response object Yes
type string Yes

Responses

StatusDescriptionSchema
200已创建的凭证dto.WebAuthnCredentialDataResponse
400参数错误或会话未找到gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.WebAuthnCredentialDataResponse

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

dto.WebAuthnCredentialItem

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-05-20T08:00:00Z
credential_id string No cred_xyz789
device_info string No FIDO2
id string No wc_abc123
last_used_at string No 2026-05-25T08:00:00Z
name string No YubiKey 5C

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No