POST /auth/webauthn/authenticate/begin
根据邮箱查找用户,生成Passkey登录挑战(无需JWT)
WebAuthn None application/json
Request Body
Schema: dto.PasskeyAuthBeginRequest
| Field | Type | Required | Example | Constraints | Description |
email |
string |
No |
|
|
|
mediation |
string |
No |
|
|
"conditional" 启用条件UI(免填写邮箱自动填充) |
tenant_id |
string |
No |
|
|
|
Referenced Schemas
dto.SimpleResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
dto.WebAuthnCredentialDescriptor
| Field | Type | Required | Example | Constraints | Description |
id |
string |
No |
|
|
|
transports |
array of
string |
No |
|
|
|
type |
string |
No |
|
|
|
dto.WebAuthnLoginOptionsResponse
| Field | Type | Required | Example | Constraints | Description |
allowCredentials |
array of
See dto.WebAuthnCredentialDescriptor |
No |
|
|
|
challenge |
string |
No |
|
|
|
rpId |
string |
No |
|
|
|
timeout |
integer |
No |
|
|
|
userVerification |
string |
No |
|
|
|
dto.WebAuthnLoginResponse
dto.WebAuthnLoginResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.WebAuthnLoginResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|