/auth/webauthn/authenticate/complete
验证Passkey认证响应并返回JWT令牌(无需JWT)
请求体
Schema: service-identity/internal/handler/dto.PasskeyAuthenticateCompleteRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
credential |
service-identity/internal/infrastructure/webauthn.AuthenticationResponse |
是 | |||
email |
string |
否 | |||
tenant_id |
string |
否 | 公开路由无租户 ctx,子租户登录须显式传入 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 登录成功 | service-identity/internal/handler/dto.DataResponse |
| 400 | 请求参数错误 | service-core/base/dto.SimpleResponse |
| 401 | 认证失败 | service-core/base/dto.SimpleResponse |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-identity/internal/handler/dto.DataResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
object |
否 | |||
message |
string |
否 |
service-identity/internal/infrastructure/webauthn.AuthenticationResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
id |
string |
否 | |||
raw_id |
string |
否 | |||
response |
object |
否 | |||
type |
string |
否 | |||
user_id |
string |
否 |