Identity verification

Onboard customers seamlessly with a verified identity on your platform.

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:

The website starts a data-sharing request with Affinidi Iota Framework, which signs the request token. The website opens Affinidi Vault with it. The Vault sees that the presentation definition asks for a VerifiedIdentityDocument issued by Affinidi's IDV service, looks for one, and runs identity verification first when the user has none. After the user consents, the Vault sends the Verifiable Presentation to Affinidi Iota Framework, which passes it to the website. The website starts a data-sharing request with Affinidi Iota Framework, which signs the request token. The website opens Affinidi Vault with it. The Vault sees that the presentation definition asks for a VerifiedIdentityDocument issued by Affinidi's IDV service, looks for one, and runs identity verification first when the user has none. After the user consents, the Vault sends the Verifiable Presentation to Affinidi Iota Framework, which passes it to the website.

When the user’s Affinidi Vault holds no verified identity VC, it runs identity verification before asking for consent:

When Affinidi Vault has no verified identity VC, it sends the user to Veriff. The user takes a selfie and scans their passport, and Veriff verifies them. Veriff sends the user back to Affinidi Vault, which stores the verified identity VC in the default profile and restarts the data request. When Affinidi Vault has no verified identity VC, it sends the user to Veriff. The user takes a selfie and scans their passport, and Veriff verifies them. Veriff sends the user back to Affinidi Vault, which stores the verified identity VC in the default profile and restarts the data request.
Identity Verification Flow Highlights:
  1. The website starts onboarding through Affinidi Iota Framework and requests the user’s verified identity.

  2. 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.

  3. The user takes a selfie and scans their passport, and Veriff verifies them.

  4. Veriff returns the user to Affinidi Vault, which stores the verified identity VC in the user’s default profile.

  5. Affinidi Vault asks for user consent to share the verified identity VC with the website.

  6. After consent, Affinidi Vault creates a Verifiable Presentation and sends it to Affinidi Iota Framework.

  7. The website parses the Verifiable Presentation and continues the user journey.

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:

  1. Create or update Affinidi Iota Framework configuration using this guide.

Enable IDV Flow
  1. 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$"
              }
            }
          }
        ]
      }
    }
  ]
}
  1. 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.

  Query the verified identity document using Presentation Definition (PEX Query).

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_denied response 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

  Onboard users with verified identity using Affinidi Iota Framework

  Manage your verified identity VC issued to your Affinidi Vault

  Issue Verifiable Credentials (VCs) to your users