Register Passkey
Completes the WebAuthn registration ceremony by verifying the newly created credential returned by the client and storing it securely on the server. This step occurs after the client-side WebAuthn API (e.g. navigator.credentials.create
) generates a credential in response to the Public Key Credential Creation Options.
Resource
POST /passkey/register
Parameters
None
Payload
Response
None
Context
Authorization |
User |
Errors
Example
Request
POST http://sip.xelion.nl/api/v1/master/passkey_register
Payload
{
"id": "AbCdEfGh1234",
"rawId": "QWJDbEVmR2gxMjM0",
"type": "public-key",
"authenticatorAttachment": "platform",
"response": {
"clientDataJSON": "eyJjaGFsbGVuZ2UiOiAiQ2hhbGxlbmdlSW5CYXNlNjQiLCAidHlwZSI6ICJ3ZWJhdXRobi5jcmVhdGUiLCAib3JpZ2luIjogImh0dHBzOi8vZXhhbXBsZS5jb20ifQ",
"attestationObject": "o2NmbXQuaWQwcmV4YW1wbGVBdHRlc3RhdGlvbk9iamVjdA",
}
}