Skip to main content

Implementing OID4VC Issuing Flow with Didit's API in C#/.NET

Dive into implementing OpenID for Verifiable Credentials (OID4VC) issuing flows using Didit's powerful and developer-friendly API in C#/.NET.

Implementing OID4VC Issuing Flow with Didit's API in C#/.NET

Contents

In this guide

Jump to the part you need.

Streamlined Credential IssuanceImplementing OID4VC for Verifiable Credentials (VCs) can be complex, but Didit's API simplifies the core identity verification steps required before issuance, making the process efficient and secure.

Developer-Friendly IntegrationDidit's platform is designed for developers, offering clean APIs and comprehensive documentation that enable quick and seamless integration into C#/.NET applications for managing identity verification workflows.

Enhanced Security and ComplianceBy integrating Didit's advanced ID Verification and Liveness Detection, organizations can ensure that the VCs they issue are based on thoroughly verified identities, bolstering security and meeting regulatory compliance.

Didit's Modular AdvantageDidit provides the foundational identity verification layer, including Core KYC, allowing businesses to compose robust OID4VC issuing flows with unparalleled flexibility and without upfront setup fees.

Understanding OpenID for Verifiable Credentials (OID4VC)

The digital world is rapidly moving towards decentralized identity, and Verifiable Credentials (VCs) are at its forefront. OID4VC, or OpenID for Verifiable Credentials, is a set of specifications that define how VCs can be issued, exchanged, and verified using the widely adopted OpenID Connect protocol. This framework provides a standardized, secure, and privacy-preserving way for organizations to issue digital credentials (e.g., proof of age, employment, or academic qualifications) directly to users, who then control how and when these credentials are presented.

Implementing an OID4VC issuing flow involves several critical steps: first, verifying the identity of the individual requesting the credential; second, creating and signing the VC; and third, securely issuing it to the user's digital wallet. The initial identity verification step is paramount, as the trustworthiness of the VC hinges entirely on the reliability of the identity check performed by the issuer. This is where platforms like Didit play a crucial role, providing the robust and reliable identity verification services needed to underpin a secure OID4VC ecosystem.

The Role of Identity Verification in OID4VC Issuance

Before any Verifiable Credential can be issued, the issuer must have high confidence in the identity of the individual requesting it. This often involves a multi-layered identity verification process. Traditional methods can be cumbersome and prone to fraud, but modern AI-native platforms like Didit offer sophisticated solutions that streamline this crucial step.

Consider a scenario where an online service needs to issue a 'Verified Age' credential. Before issuing, the service must verify the user's age. Didit's Age Estimation and ID Verification products are perfectly suited for this. A user might submit a government-issued ID document, which Didit's OCR technology can rapidly scan and extract data from. Simultaneously, Passive & Active Liveness detection can confirm the user is a real, present person and not a deepfake or presentation attack. This ensures that the foundational identity information for the VC is accurate and trustworthy.

For more complex VCs, such as those requiring proof of address or financial standing, Didit's Proof of Address and AML Screening & Monitoring capabilities can be integrated into the pre-issuance workflow. By leveraging Didit's modular architecture, businesses can compose tailored verification flows that meet the specific requirements of each VC type, ensuring compliance and reducing risk.

Integrating Didit's API for Identity Verification in C#/.NET

Didit's API is designed for ease of integration, making it ideal for C#/.NET developers building OID4VC issuing platforms. The platform's developer-first approach means clean APIs, instant sandboxes, and comprehensive documentation, allowing for rapid development and deployment. Let's outline a simplified process for integrating Didit's identity verification into a C#/.NET application.

Before making any verification calls, you need to obtain your API credentials. Didit allows for programmatic registration and credential retrieval, which is highly beneficial for automated setups or AI agents. You would first register your email and password via the /programmatic/register/ endpoint. Then, verify the email using the OTP code received, calling the /programmatic/verify-email/ endpoint. This step automatically provisions an organization and application, returning your api_key.

Once you have your api_key, you can initiate a verification session. For instance, to perform an ID Verification and Liveness check, your C# application would make API calls to Didit's session management endpoints. Didit handles the user-facing experience (e.g., capturing ID images, performing liveness checks) and returns a comprehensive verification result. This result, indicating the success and reliability of the identity verification, then informs your OID4VC issuance logic. Didit's modularity means you can choose exactly which verification checks are necessary for each type of credential, optimizing both cost and user experience.

Building OID4VC Issuing Logic with Didit Verification Results

With the identity verified by Didit, your C#/.NET application can proceed with the OID4VC issuance. The Didit verification result provides the necessary assurance that the user's identity is legitimate. Your application would then:

  1. Receive Verification Result: Parse the successful verification result from Didit, which includes details about the verified identity, liveness status, and any other checks performed (e.g., AML, Age Estimation).
  2. Prepare Credential Data: Based on the type of VC being issued (e.g., age credential, employment credential), gather the relevant claims about the user from the verified identity data and your internal systems.
  3. Generate and Sign VC: Use an OID4VC-compatible library in C# (e.g., a .NET library for JWTs and JOSE) to construct the Verifiable Credential. This involves embedding the claims, defining the credential type, and signing it with your issuer's private key.
  4. Issue VC: Present the signed VC to the user, typically via a deep link or QR code, allowing them to add it to their digital wallet. The OID4VC protocol specifies how this interaction occurs, leveraging OpenID Connect flows.

Didit's role is to provide the trusted foundation for step 1, ensuring that the identity behind the credential is unassailable. This separation of concerns allows your team to focus on the OID4VC specific implementation, knowing that the identity verification is handled by an expert, AI-native platform.

How Didit Helps

Didit is the AI-native, developer-first identity platform that simplifies the complex world of identity verification, making it an indispensable tool for implementing OID4VC issuing flows. Didit's modular architecture allows businesses to pick and choose the exact identity primitives they need, such as ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness, 1:1 Face Match, Age Estimation, AML Screening, and Proof of Address. This ensures that the foundational identity checks for any Verifiable Credential are robust and tailored to specific requirements.

Didit stands out with its commitment to Core KYC, enabling businesses to get started with essential identity verification. Its AI-native approach ensures high accuracy and fraud prevention capabilities, while the absence of setup fees and a pay-per-successful-check model make it an economically viable choice for businesses of all sizes. By integrating Didit, organizations can quickly deploy secure, compliant, and efficient OID4VC issuing systems, benefiting from orchestrated workflows and automated trust without the overhead of building complex verification infrastructure in-house. Didit is truly building the open, modular identity layer of the internet, empowering developers to create the next generation of identity solutions.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.