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>",
"authenticatorData": "<string>",
"algorithm": "<string>",
"userHandle": "<string>"
}
},
"secondFactor": {
"kind": "Fido2",
"credentialAssertion": {
"credId": "<string>",
"clientData": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"algorithm": "<string>",
"userHandle": "<string>"
}
}
}
'{
"token": "<string>"
}Completes the login process and provides the authenticated user with their authentication token.
The type of credentials used to login is determined by the kind field in the nested objects (firstFactor and secondFactor). Supported credential kinds are:
Fido2: Login challenge is signed by a user’s signing device using WebAuthn.Key: Login challenge is signed by a user’s private key.PasswordProtectedKey: Login challenge is signed by the decrypted user’s private key that was sent during Create User Login Challenge step.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>",
"authenticatorData": "<string>",
"algorithm": "<string>",
"userHandle": "<string>"
}
},
"secondFactor": {
"kind": "Fido2",
"credentialAssertion": {
"credId": "<string>",
"clientData": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"algorithm": "<string>",
"userHandle": "<string>"
}
}
}
'{
"token": "<string>"
}Temporary authentication token returned by the Create Challenge endpoint.
First factor credential used to sign the challenge.
Show child attributes
Second factor credential used to authenticate a user.
Show child attributes
Success
Was this page helpful?