Skip to main content

Assertion endpoint

You can use this endpoint to finalize a FIDO2 authentication operation. For more information about authentication with FIDO2, see Approval.

HTTP request

POST https://{instance}.mauth.nevis.cloud/_app/assertion/result

Request body parameters

note

Some HTTP request parameters must be Base64 URL encoded.

ParameterTypeRequired/OptionalDescription
typestringrequiredType of credential, which is an extension point. It only supports public-key.
 idstringrequiredBase64-URL-encoded unique byte sequence that identifies a public key credential source and its authentication assertions.
responseDICTrequiredContains a cryptographic signature proving the possession of the credential private key, and optionally, the evidence of user consent to a specific transaction.
response.clientDataJSONstringrequiredBase64-URL-encoded JSON-compatible serialization of client data passed to the authenticator.
response.authenticatorDatastringrequiredBase64-URL-encoded authenticator data returned by the authenticator.
response.signaturestringrequiredBase64-URL-encoded raw signature returned from the authenticator.
 response.userHandlestringrequiredBase64-URL-encoded user handle returned from the authenticator. The parameter cannot be null or empty.
 userAgentstringoptionalUser agent that was used to initiate the current request.

Example HTTP request

cURL code sample for finalizing the authentication
curl "https://$instance.mauth.nevis.cloud/_app/assertion/result" \
-XPOST \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'Accept: application/json' \
-d "{
\"id\":\"$id\",
\"type\":\"public-key\",
\"response\": {
\"authenticatorData\":\"$authenticatorData\",
\"clientDataJSON\":\"$clientDataJSON\",
\"signature\":\"$signature\",
\"userHandle\":\"$userHandle\"
},
\"userAgent\":\"Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0\"
}"

HTTP response

FieldTypeDescription
errorMessagestringContains the error message if the status is failed, otherwise the field is empty.
statusstringIndicates the status of the response. On successful operation, status is ok, otherwise failed.
tokenstringTransaction token to verify whether the operation is executed by your Authentication Cloud instance. For more information, see Token introspection endpoint.

Example HTTP response

200 OK: Success response

{
"errorMessage": "",
"status": "ok",
"token": "eyJhbGc...2CDSw"
}