Recover User
POST /auth/recover/user
Recovers a user, using a recovery credential. After successfully recovering the user, all of the user's previous credentials and personal access tokens will be invalidated.
Request headers required. See Request Headers for more information.
Temporary authentication token required. See Registration Headers for more information.
Required Permissions
Since this endpoint is not authenticated, the permissions apply to the application only.
Auth:Users:Create
Always Required
Auth:Types:Employee
When kind
is CustomerEmployee
Auth:Types:EndUser
When kind
is EndUser
Request body
recovery
*
Object
a signature of the user's new credentials, using the user's recovery credential, that proves the user initiated the recovery request
recovery.kind
*
String
will always be RecoveryKey
recovery.credentialAssertion
*
Object
recovery.credentialAssertion.credId
*
String
base64url encoded id of the recovery credential
recovery.credentialAssertion.clientData
*
String
recovery.credentialAssertion.signature
*
String
base64url encoded signature generated by signing the clientData JSON string object
newCredentials
*
Object
the new credentials being assigned to the user
newCredentials.firstFactorCredential
*
Object
new first factor credential that the user is registering
newCredentials.secondFactorCredential
Object
Optional
new second factor credential that the user is registering
newCredentials.recoveryCredential
Object
Optional
new recovery credential that can be used to recover the user's account
Fido2 Credential
credentialKind
*
String
will always be Fido2
credentialInfo
*
Object
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
credentialInfo.credId
*
String
base64url encoded id of the credential
credentialInfo.clientData
*
String
credentialInfo.attestationData
*
String
Example
Recovery Credential
credentialKind
*
String
will always be RecoveryKey
credentialInfo
*
Object
credentialInfo.credId
*
String
base64url encoded id of the credential
credentialInfo.clientData
*
String
credentialInfo.attestationData
*
String
encryptedPrivateKey
String
Optional
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 User Recovery Errors for user recovery specific errors.
Success - an object describing the user
Last updated