Skip to main content

Federated Credentials with Didit and Keycloak: A Powerful Duo

Learn how to integrate Didit's robust identity verification capabilities with Keycloak to create a secure, scalable, and compliant federated identity system.

Federated Credentials with Didit and Keycloak: A Powerful Duo

Contents

In this guide

Jump to the part you need.

Seamless IntegrationKeycloak offers a robust, open-source identity and access management solution that can be significantly enhanced by integrating external identity verification services like Didit.

Enhanced Security and ComplianceCombining Keycloak's IAM with Didit's advanced verification products, such as ID Verification and Passive & Active Liveness, strengthens security and helps meet regulatory compliance requirements like KYC and AML.

Streamlined User ExperienceFederated credentials reduce friction for users by allowing them to reuse existing digital identities, while Didit ensures the underlying identity is legitimate and verified, creating a trusted environment.

Didit's Modular AdvantageDidit's AI-native, modular architecture and Core KYC offer unparalleled flexibility and cost-effectiveness for integrating diverse identity verification checks into any Keycloak-based federated system.

The Power of Federated Credentials

In today's digital landscape, users expect seamless access to services without the burden of creating new accounts for every platform. Federated credentials address this by allowing users to authenticate once with a trusted Identity Provider (IdP) and gain access to multiple Service Providers (SPs). This not only improves user experience but also centralizes identity management, reducing the attack surface and simplifying compliance. Keycloak, as a leading open-source Identity and Access Management (IAM) solution, excels at facilitating this federation, supporting protocols like OpenID Connect and SAML.

However, the strength of federated credentials hinges on the trustworthiness of the underlying identity. How do you ensure that the identity asserted by an IdP is genuinely tied to a real, legitimate person? This is where a robust identity verification platform becomes indispensable. Integrating a solution like Didit with Keycloak allows organizations to verify the authenticity of identities at critical junctures, such as initial registration or high-risk transactions, ensuring that even federated users are thoroughly vetted.

Why Integrate Didit with Keycloak?

Keycloak provides a solid foundation for IAM, but it doesn't inherently perform deep identity verification or fraud prevention. Didit fills this gap by offering a comprehensive suite of AI-native identity verification products that can be seamlessly integrated into Keycloak workflows. This integration creates a formidable defense against identity fraud and enhances compliance posture.

Consider a scenario where a user registers via a social login (federated identity) through Keycloak. While Keycloak handles the authentication with the social IdP, Didit can step in to perform ID Verification, checking the user's government-issued document, and even running Passive & Active Liveness checks to confirm the user is a real, present person and not a deepfake or spoofing attempt. This multi-layered approach ensures that the federated identity is not just authenticated but also verified.

Furthermore, for industries requiring stringent regulatory adherence, Didit's AML Screening & Monitoring can be triggered post-federation to ensure the user isn't on any watchlists. This combined power allows businesses to leverage the convenience of federated identities while maintaining the highest standards of security and compliance.

Practical Integration Scenarios

Integrating Didit with Keycloak can be achieved in several ways, depending on your specific use case and workflow. A common approach involves using Keycloak's event listeners or custom user flows to trigger Didit's verification services.

1. Post-Registration Verification

After a user successfully authenticates via a federated IdP through Keycloak, you can configure Keycloak to redirect the user to a Didit-powered verification flow. This could involve:

  • Document Verification: The user uploads their ID document, which Didit's ID Verification (OCR, MRZ, barcodes) processes to extract data and check for authenticity.
  • Liveness Detection: Didit's Passive & Active Liveness ensures the user is live and present, preventing presentation attacks.
  • Face Matching: A 1:1 Face Match can compare the user's selfie with the photo on their ID document.

Once Didit completes the verification, the results can be sent back to Keycloak via webhooks or API calls, updating the user's profile with a 'verified' status or triggering further actions.

2. Progressive Profiling and Step-Up Authentication

For applications requiring different levels of assurance, you can implement progressive profiling. Initial federated authentication provides basic access, and higher-risk actions (e.g., large financial transactions, accessing sensitive data) trigger a step-up verification process using Didit. Keycloak's authentication flows can be configured to prompt for additional verification, such as a new NFC Verification of an ePassport for the highest level of assurance, before granting access to sensitive resources.

3. Continuous Monitoring and Compliance

Didit's AML Screening & Monitoring can be integrated to continuously check user identities against sanctions lists and PEP databases. This is crucial for ongoing compliance, especially for financial services. Keycloak can periodically trigger these checks or react to webhook notifications from Didit if a user's status changes.

Data Retention and Privacy in a Federated System

When dealing with sensitive identity data, especially in a federated context, data retention and privacy are paramount. Didit acts as a data processor, with you remaining the data controller. Didit is designed to support GDPR and other local data-protection regimes, offering configurable data retention policies. You can set retention windows from 1 month to 10 years, or even manually delete individual sessions from the Business Console. This granular control ensures that your federated identity solution remains compliant with evolving privacy regulations, irrespective of where your users authenticate from.

How Didit Helps

Didit is the AI-native, developer-first identity platform that perfectly complements Keycloak's robust IAM capabilities. With an open, modular architecture, Didit allows you to plug-and-play identity checks precisely where you need them in your Keycloak-orchestrated workflows. Didit’s Core KYC comes with pay-per-use pricing, so you can get started without upfront costs and verify identities efficiently and effectively.

Our comprehensive suite includes ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness for fraud prevention, 1:1 Face Match & Face Search for biometric authentication, and AML Screening & Monitoring for compliance. For age-restricted services, our privacy-preserving Age Estimation is invaluable. Every product is designed to integrate seamlessly via clean APIs, making it easy for developers to build sophisticated identity verification into Keycloak's flows.

Didit's AI-native approach ensures high accuracy and continuous improvement in fraud detection. By leveraging Didit, you can automate trust, orchestrate risk, and gain structured identity data, transforming your Keycloak-powered federated identity system into an unassailable fortress of security and convenience.

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.