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

POST /auth/webauthn/register/complete

验证客户端创建的凭证并保存公钥, 返回恢复码

WebAuthn `bearerAuth` application/json

Request Body

Schema: handler.completeRegistrationRequest

FieldTypeRequiredExampleConstraintsDescription
credential webauthn.CredentialCreation Yes

Responses

StatusDescriptionSchema
200注册成功, 含恢复码dto.SimpleResponseWrapper
400请求参数错误dto.SimpleResponseWrapper
401未授权dto.SimpleResponseWrapper
500服务器错误dto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

webauthn.CredentialCreation

FieldTypeRequiredExampleConstraintsDescription
id string No
raw_id string No
response object No
type string No