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

POST /auth/webauthn/authenticate/complete

验证Passkey认证响应并返回JWT令牌(无需JWT)

WebAuthn None application/json

Request Body

Schema: dto.PasskeyAuthenticateCompleteRequest

FieldTypeRequiredExampleConstraintsDescription
credential webauthn.AuthenticationResponse Yes
email string No 条件UI时可为空, 由credential.userHandle标识用户

Responses

StatusDescriptionSchema
200登录成功gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse
400请求参数错误dto.SimpleResponseWrapper
401认证失败dto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data object No
message string No

webauthn.AuthenticationResponse

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