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

POST /auth/webauthn/authenticate/begin

根据邮箱查找用户,生成Passkey登录挑战(无需JWT)

WebAuthn None application/json

Request Body

Schema: dto.PasskeyAuthBeginRequest

FieldTypeRequiredExampleConstraintsDescription
email string No
mediation string No "conditional" 启用条件UI(免填写邮箱自动填充)
tenant_id string No

Responses

StatusDescriptionSchema
200登录选项dto.WebAuthnLoginResponseWrapper
400请求参数错误dto.SimpleResponseWrapper
404用户不存在dto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

dto.WebAuthnCredentialDescriptor

FieldTypeRequiredExampleConstraintsDescription
id string No
transports array of

string

No
type string No

dto.WebAuthnLoginOptionsResponse

FieldTypeRequiredExampleConstraintsDescription
allowCredentials array of

See dto.WebAuthnCredentialDescriptor

No
challenge string No
rpId string No
timeout integer No
userVerification string No

dto.WebAuthnLoginResponse

FieldTypeRequiredExampleConstraintsDescription
publicKey dto.WebAuthnLoginOptionsResponse No

dto.WebAuthnLoginResponseWrapper

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