Skip to main content

Identity Orchestration: Building with Open Source

Explore how to build a robust identity orchestration engine using open-source tools like Apache NiFi, Kafka, and Kubernetes. Learn about microservices architecture and API design for scalable identity verification.

Identity Orchestration: Building with Open Source

Contents

In this guide

Jump to the part you need.

Identity Orchestration: Building with Open Source

In today's digital landscape, managing identity verification is a complex challenge. Businesses require a flexible, scalable, and secure system to handle diverse verification needs, from basic identity checks to full KYC/AML compliance. Rather than relying on monolithic vendor solutions, many organizations are turning to identity orchestration – the process of coordinating multiple identity services into a unified workflow. This post explores building an identity orchestration engine using powerful open source tools.

Key Takeaway 1: Identity orchestration provides flexibility, allowing you to swap out individual verification components without disrupting the entire system.

Key Takeaway 2: Open-source tools offer cost savings and greater control over your identity infrastructure, but require in-house expertise.

Key Takeaway 3: Microservices architecture is crucial for scalability and resilience in identity orchestration.

Key Takeaway 4: Data streaming with tools like Kafka enables real-time processing and event-driven workflows.

Why Build an Identity Orchestration Engine?

Traditional identity verification solutions often present limitations: rigid workflows, vendor lock-in, and lack of customization. An identity orchestration engine addresses these issues by decoupling identity services and connecting them through a central control plane. This approach offers several benefits:

  • Flexibility: Easily integrate new verification methods (e.g., biometric checks, document verification) as needed.
  • Scalability: Handle increasing verification volumes without performance bottlenecks.
  • Resilience: Isolate failures and maintain system uptime even if individual services experience issues.
  • Cost Optimization: Choose best-of-breed services and avoid vendor lock-in.
  • Customization: Tailor verification workflows to specific business requirements and risk profiles.

The Open-Source Stack: Core Components

Building an identity orchestration engine requires several key components. Here’s a common open-source stack:

  • Apache NiFi: A powerful dataflow system for automating the movement and transformation of data. NiFi acts as the central orchestration engine, defining and executing verification workflows.
  • Apache Kafka: A distributed streaming platform for building real-time data pipelines and streaming analytics. Kafka facilitates asynchronous communication between microservices.
  • Kubernetes: A container orchestration platform for automating deployment, scaling, and management of containerized applications. Kubernetes provides the infrastructure for running the microservices.
  • Microservices: Individual, independently deployable services responsible for specific verification tasks (e.g., document verification, AML screening).
  • API Gateway: A central entry point for external applications to access the identity orchestration engine.

Architecture: A Microservices Approach

The foundation of a scalable identity orchestration engine is a microservices architecture. Each verification task is encapsulated within its own service, communicating with other services via APIs or message queues (Kafka). Here's a simplified example:

Identity Orchestration Architecture

1. An external application initiates a verification request through the API Gateway.

2. The API Gateway routes the request to Apache NiFi.

3. NiFi orchestrates the workflow, invoking the appropriate microservices (e.g., Document Verification Service, AML Screening Service).

4. Microservices communicate with each other via Kafka (e.g., Document Verification Service publishes an event, AML Screening Service subscribes to the event).

5. NiFi aggregates the results from each microservice and returns a final verification decision to the API Gateway.

Implementing Workflows with Apache NiFi

Apache NiFi excels at defining and executing complex dataflows. You can visually design workflows using NiFi's drag-and-drop interface. Key NiFi processors for identity orchestration include:

  • InvokeHTTP: Call external APIs (e.g., document verification services).
  • ExecuteStreamCommand: Execute shell commands or scripts.
  • PublishKafka: Publish messages to Kafka topics.
  • ConsumeKafka: Subscribe to Kafka topics.
  • RouteOnAttribute: Route data based on attribute values (e.g., country code, document type).
  • MergeContent: Combine data from multiple sources.

For example, a NiFi flow might:

  1. Receive a verification request.
  2. Extract data from the request.
  3. Invoke a Document Verification Service via InvokeHTTP.
  4. If the document is valid, publish a “DocumentVerified” event to Kafka.
  5. Subscribe to the “DocumentVerified” event and invoke an AML Screening Service.
  6. Aggregate the results from both services and return a final verdict.

Data Streaming with Kafka

Kafka acts as the central nervous system of the identity orchestration engine, enabling asynchronous communication and event-driven workflows. Each verification step can publish events to Kafka, allowing other services to react in real-time. For example:

  • Document Verification Service publishes “DocumentVerificationCompleted” event.
  • AML Screening Service subscribes to this event and initiates AML checks.
  • Fraud Detection Service subscribes to both events and analyzes data for suspicious patterns.

How Didit Helps

Didit provides a robust set of APIs and SDKs that seamlessly integrate with your open-source identity orchestration engine. Our core identity primitives (ID Verification, Liveness Detection, AML Screening) can be invoked via NiFi’s InvokeHTTP processor or directly through your microservices. Didit’s developer-first approach, transparent pricing, and high performance make it an ideal building block for your identity infrastructure. With Didit, you can focus on orchestrating the workflow while we handle the complexities of identity verification. We also provide a free tier to get you started!

Ready to Get Started?

Building an identity orchestration engine with open-source tools can be a complex undertaking, but the benefits – flexibility, scalability, and cost savings – are significant. Explore the tools mentioned in this post, and consider leveraging Didit’s APIs to accelerate your development.

Resources:

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.