/webauthn/register

These are the possible response codes when you make an API call to the /webauthn/register endpoint.

Response Code

Error

Message

Scenario

Resolution

200 OK

Successfully registered user credentials

401 Unauthorized

http_exception

Unauthorized

Invalid register webauthn session

Call register options again to get a new session ID.

401 Unauthorized

http_exception

Unauthorized

Expired access token

Login again and get a new access token.

403 Forbidden

http_exception

Forbidden

Invalid client_id. Could not find client settings.

Recheck and supply a valid client_id

422 Unprocessable Entity

Invalid_parameters

{
"":"field required"
}

No client_id, session_id, or public_key supplied

Add the missing parameter to the request.

422 Unprocessable Entity

Invalid_parameters

For example:

{
"160": "Expecting property name enclosed in double quotes: line 5 column 2 (char 160)"
}

Invalid public key parameter

Get public key value from relying party and supply as request parameter.