Create Credential
Last updated
Last updated
POST /auth/credentials
Part of the flow .
Adds a new credential to a user's account. See for all supported credential types.
Auth:Creds:Create
Always Required
challengeIdentifier
*
String
credentialName
*
String
Name the user is assigning to this credential
credentialKind
*
String
credentialInfo
*
Object
An object containing information about the credential being registered
encryptedPrivateKey
String
Only for Password Protected Key and Recovery Key
credentialKind
*
String
will always be Fido2
credentialInfo
*
Object
See fields below
credentialInfo.credId
*
String
base64url encoded id of the credential
credentialInfo.clientData
*
String
base64url encoded client data object. The underlying object is the clientData object returned by the user's WebAuthn client
credentialInfo.attestationData
*
String
base64url encoded attestation data object. The underlying object is the attestationData object returned by the user's WebAuthn client
credentialKind
*
String
will always be Key
credentialInfo
*
Object
See fields below
credentialInfo.credId
*
String
base64url encoded id of the credential. Note: This can be any unique value that identifies the credential (eg. account+key ID on AWS, the key's database ID, or the path to the key on disk)
credentialInfo.clientData
*
String
credentialInfo.attestationData
*
String
credentialKind
*
String
will always be PasswordProtectedKey
credentialInfo
*
Object
See fields below
credentialInfo.credId
*
String
base64url encoded id of the credential. Note: This can be any unique value that identifies the credential (eg. account+key ID on AWS, the key's database ID, or the path to the key on disk)
credentialInfo.clientData
*
String
credentialInfo.attestationData
*
String
encryptedPrivateKey
String
Encrypted private key. The user should hold the secret to decrypting this value, and that secret should never be transmitted to Dfns
credentialKind
*
String
will always be RecoveryKey
credentialInfo
*
Object
See fields below
credentialInfo.credId
*
String
base64url encoded id of the credential
credentialInfo.clientData
*
String
credentialInfo.attestationData
*
String
encryptedPrivateKey
String
Encrypted private key. The user should hold the secret to decrypting this value, and that secret should never be transmitted to Dfns
Success - an object describing the new credential
Challenge identifier returned by the call
Kind of credential being registered (see )
base64url encoded JSON string object that was signed with the user's private key
base64url encoded JSON string object with the users signature and public key
base64url encoded JSON string object that was signed with the user's private key
base64url encoded JSON string object with the users signature and public key
base64url encoded JSON string object that was signed with the user's private key
base64url encoded JSON string object with the users signature and public key
See for common errors.
See for credential management specific errors.