Login Passkey
Handles user authentication using passkeys via WebAuthn. This endpoint verifies the assertion returned from the authenticator, confirms user identity, and establishes a session or returns a token.
Resource
POST /passkey/login
Parameters
None
Payload
Response
Context
| Authorization |
Guest |
Errors
Example
Request
POST http://sip.xelion.nl/api/v1/master/passkey/start_login
Payload
{
"id": "Y2hhcmxpZQ",
"rawId": "Y2hhcmxpZQ",
"type": "public-key",
"authenticatorAttachment": "platform",
"response": {
"clientDataJSON": "eyJjaGFsbGVuZ2UiOiAiV0FBQUFBQ0FBQUFBQVoiLCAib3JpZ2luIjogImh0dHBzOi8vZXhhbXBsZS5jb20iLCAidHlwZSI6ICJ3ZWJhdXRobi5nZXQifQ",
"authenticatorData": "SZYNz1hNpaUEdDUj4mZ0bmlkYXRhX2hlcmU",
"signature": "MEUCIQD7cVtdUoH4d1K1Gz6a7bRkak9vGn1KPoN3gJvQcl8jFgIgU7xP9dchYQfjR6bHqKZfEMZ9mpgVtOFSYHAFiYT9m6Y",
"userHandle": "dXNlcl9pZA"
}
}
Response
{
"authentication": "1a6924c50327f1bc0e2ce29e06f5ae7316353d0128e7",
"renewalToken": "307d2b3a149aaebfea5495c1bc35a1b85",
"validUntil": "2020-01-15 15:45:56",
"version": "1.8",
"serverVersion": "7 update 3",
"buildNumber": "",
"host": "arno.xelion.nl",
"tenant": "pbx1",
"userName": "pluton@example.org"
}