Skip to main content
POST
/
auth
/
login
Complete User Login
curl --request POST \
  --url https://api.dfns.io/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
  "challengeIdentifier": "<string>",
  "firstFactor": {
    "kind": "Fido2",
    "credentialAssertion": {
      "credId": "<string>",
      "clientData": "<string>",
      "signature": "<string>",
      "algorithm": "RSA-SHA256",
      "authenticatorData": "<string>",
      "userHandle": "<string>"
    }
  },
  "secondFactor": {
    "kind": "Fido2",
    "credentialAssertion": {
      "credId": "<string>",
      "clientData": "<string>",
      "signature": "<string>",
      "algorithm": "RSA-SHA256",
      "authenticatorData": "<string>",
      "userHandle": "<string>"
    }
  }
}'
{
  "token": "<string>"
}

Authentication

No authentication required.

Required Permissions

No authentication required.

Body

application/json
challengeIdentifier
string
required

Temporary authentication token returned by the Create Challenge endpoint.

firstFactor
object
required

First factor credential used to sign the challenge. Use a Fido2 Credential, also known as Passkeys or WebauthN credential.

  • Fido2/Passkeys
  • Public/Private key pair
  • Password-protected Key
  • <Deprecated> Password
secondFactor
object

Second factor credential used to authenticate a user. Use a Fido2 Credential, also known as Passkeys or WebauthN credential.

  • Fido2/Passkeys
  • Public/Private key pair
  • Password-protected Key
  • <Deprecated> TOTP

Response

200 - application/json

Success

  • Option 1
  • Option 2
token
string
required