Create Credential
POST /auth/credentials
Part of the flow Create Credential Regular flow.
Adds a new credential to a user's account. See Credential Kinds for all supported credential types.
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Required Permissions
The permissions apply to the application only.
Auth:Creds:Create
Always Required
Request body
challengeIdentifier
*
String
Challenge identifier returned by the Create User Credential Challenge call
credentialName
*
String
Name the user is assigning to this credential
credentialInfo
*
Object
An object containing information about the credential being registered
encryptedPrivateKey
String
Only for Password Protected Key and Recovery Key
Fido2 Credential
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
Example
Key Credential
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
base64url encoded Client Data JSON string object that was signed with the user's private key
credentialInfo.attestationData
*
String
base64url encoded Attestation Data JSON string object with the users signature and public key
Example
Password Protected Key Credential
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
base64url encoded Client Data JSON string object that was signed with the user's private key
credentialInfo.attestationData
*
String
base64url encoded Attestation Data JSON string object with the users signature and public key
encryptedPrivateKey
String
Encrypted private key. The user should hold the secret to decrypting this value, and that secret should never be transmitted to Dfns
Example
Recovery Credential
credentialKind
*
String
will always be RecoveryKey
credentialInfo
*
Object
See fields below
credentialInfo.credId
*
String
base64url encoded id of the credential
credentialInfo.clientData
*
String
base64url encoded Client Data JSON string object that was signed with the user's private key
credentialInfo.attestationData
*
String
base64url encoded Attestation Data JSON string object with the users signature and public key
encryptedPrivateKey
String
Encrypted private key. The user should hold the secret to decrypting this value, and that secret should never be transmitted to Dfns
Example
Responses
See Common Errors for common errors.
See Credential Management Errors for credential management specific errors.
Success - an object describing the new credential
Last updated