POST /auth/webauthn/register/complete

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

WebAuthn `bearerAuth` application/json

请求体

Schema: handler.completeRegistrationRequest

字段类型必填示例约束描述
credential service-identity/internal/infrastructure/webauthn.CredentialCreation 是

响应

状态描述Schema
200注册成功, 含恢复码service-core/base/dto.SimpleResponse
400请求参数错误service-core/base/dto.SimpleResponse
401未授权service-core/base/dto.SimpleResponse
500服务器错误service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-identity/internal/infrastructure/webauthn.CredentialCreation

字段类型必填示例约束描述
id string 否
raw_id string 否
response object 否
type string 否