Identity verification
Identity Verification is a feature of Affinidi Vault that lets users verify their identity using standard documents, such as passports.
After successful verification, Affinidi Vault creates a verified identity document in the Verifiable Credential (VC) format. Users can share and reuse this credential for identity checks.
Your app can request the user’s verified identity document during onboarding to streamline the process.
How identity verification flow works
The diagrams below show the Identity Verification flow using the Affinidi Iota Framework. First, the data-sharing request:
When the user’s Affinidi Vault holds no verified identity VC, it runs identity verification before asking for consent:
Identity Verification Flow Highlights:
The website starts onboarding through Affinidi Iota Framework and requests the user’s verified identity.
The user unlocks Affinidi Vault. The Presentation Definition asks for a verified identity VC issued by Affinidi, so the Vault looks for a matching VC among the user’s credentials. If there is none, it sends the user to Veriff, the verification provider.
The user takes a selfie and scans their passport, and Veriff verifies them.
Veriff returns the user to Affinidi Vault, which stores the verified identity VC in the user’s default profile.
Affinidi Vault asks for user consent to share the verified identity VC with the website.
After consent, Affinidi Vault creates a Verifiable Presentation and sends it to Affinidi Iota Framework.
The website parses the Verifiable Presentation and continues the user journey.
If verification fails or is incomplete, your website receives an access_denied response code.
Enabling identity verification flow
Identity Verification is in Closed Beta. To enable:
Send a request via the Contact Us form to whitelist your Project ID.
Integrate your website with Affinidi Iota Framework, a consent-driven data-sharing process.
Steps to Enable:
Create or update Affinidi Iota Framework configuration using this guide.
- Select Redirect as the data-sharing mode.
- Enable Identity Verification (IDV) (available only for specific projects).

Identity Verification works only in Redirect mode.
After enabling IDV, create a Presentation Definition query requesting a passport document.
- Affinidi Vault checks the query in the request token to confirm if the VC is a verified identity VC.
- If not present, it starts the Identity Verification flow.
{
"id": "verified_identity",
"input_descriptors": [
{
"id": "id_document_input",
"name": "Passport",
"constraints": {
"fields": [
{
"path": ["$.issuer", "$.vc.issuer", "$.iss"],
"purpose": "Only accept credentials issued by Affinidi IDV",
"filter": {
"type": "string",
"pattern": "^did:web:idv.affinidi.com$"
}
},
{
"path": [
"$.type"
],
"purpose": "Only accept IDV type VC",
"filter": {
"type": "array",
"contains": {
"type": "string",
"pattern": "^VerifiedIdentityDocument$"
}
}
},
{
"path": [
"$.type"
],
"purpose": "Only accept IDV supported document",
"filter": {
"type": "array",
"contains": {
"type": "string",
"pattern": "^Passport$"
}
}
}
]
}
}
]
}The verified identity VC is signed and issued by Affinidi’s DID (did:web:idv.affinidi.com) using the did:web method. Follow the Presentation Definition template to request the VC correctly.
- Implement Affinidi Iota Framework in your website using Redirect mode with this guide.
Supported identity documents
Identity Verification supports:
- Passport - Extracts user details from a captured passport.
Support for driver’s licences is coming soon.
Learn how to request supported documents from a user’s Affinidi Vault using the Affinidi Iota Framework and Presentation Definitions.
Frequently asked questions
What if my customer has already verified their identity in Affinidi Vault?
Verified identity VCs are stored in the user’s Vault. They can reuse them across apps, reducing friction and improving onboarding.
How much does Identity Verification cost?
We aim to lower costs through credential reusability. Contact our team for details.
Who performs the verification?
Verification is handled by Veriff.
What if the user is not verified?
If technical issues occur on Affinidi or partner systems, you will not be charged. Charges apply only when the user consents to share data. If the user fails verification (e.g., abandons the session or uses fraudulent documents), you receive an
access_deniedresponse code.Track failure metrics in Affinidi Portal .
How to report an issue?
Raise it via this form or contact your assigned POC.
What’s next
Glad to hear it. Thanks for letting us know.
Sorry to hear that. Thanks for letting us know.
Still stuck? Ask the community on Discord or contact us.