curl --request POST \
--url https://api.dfns.io/auth/credentials/code/init \
--header 'Content-Type: application/json' \
--data '
{
"credentialKind": "Fido2",
"code": "<string>"
}
'{
"kind": "Fido2",
"user": {
"id": "<string>",
"displayName": "<string>",
"name": "<string>"
},
"challengeIdentifier": "<string>",
"challenge": "<string>",
"authenticatorSelection": {
"residentKey": "required",
"requireResidentKey": true,
"userVerification": "required",
"authenticatorAttachment": "platform"
},
"attestation": "none",
"pubKeyCredParams": [
{
"type": "public-key",
"alg": 123
}
],
"excludeCredentials": [
{
"type": "public-key",
"id": "cr-6uunn-bm6ja-f6rmod5kqrk5rbel"
}
],
"temporaryAuthenticationToken": "<string>",
"rp": {
"id": "<string>",
"name": "<string>"
}
}Part of the flow Create Credential With Code.
Creates a credential challenge using a one time code-time-code. This challenge must then be signed by the new credential, before finalizing the flow.
curl --request POST \
--url https://api.dfns.io/auth/credentials/code/init \
--header 'Content-Type: application/json' \
--data '
{
"credentialKind": "Fido2",
"code": "<string>"
}
'{
"kind": "Fido2",
"user": {
"id": "<string>",
"displayName": "<string>",
"name": "<string>"
},
"challengeIdentifier": "<string>",
"challenge": "<string>",
"authenticatorSelection": {
"residentKey": "required",
"requireResidentKey": true,
"userVerification": "required",
"authenticatorAttachment": "platform"
},
"attestation": "none",
"pubKeyCredParams": [
{
"type": "public-key",
"alg": 123
}
],
"excludeCredentials": [
{
"type": "public-key",
"id": "cr-6uunn-bm6ja-f6rmod5kqrk5rbel"
}
],
"temporaryAuthenticationToken": "<string>",
"rp": {
"id": "<string>",
"name": "<string>"
}
}Success
Fido2 Credential, also known as Passkeys or WebauthN credential.
Fido2 Show child attributes
Show child attributes
Identifies the information needed to verify the user's signing certificate; can be one of the following:
none, indirect, direct, enterprise Show child attributes
Show child attributes
@deprecated use challengeIdentifier instead
Show child attributes
Was this page helpful?