Reference method
Open-source IAM reference architecture
A vendor-neutral reference for choosing and operating open-source identity platforms: Keycloak, Authentik, Zitadel, Ory, and midPoint.
Problem. Open-source IAM products look similar in a feature table but fit very different operating models, licence constraints, and tenant designs.
Reference architecture. This page describes bworkx’s vendor-neutral approach to open-source IAM. It is not a client engagement, a vendor partnership, or a claim that one product fits every organisation.
Why a reference architecture
The open-source IAM market has matured. That is good news, and it makes selection harder. Keycloak, Authentik, Zitadel, Ory, and midPoint can all authenticate a user. They are not interchangeable.
The reference architecture starts with the pattern, then the product:
| Pattern | Typical product | Why |
|---|---|---|
| Workforce SSO and enterprise federation | Keycloak | Mature SAML, LDAP, and Active Directory federation; Apache-2.0; large community |
| Internal apps, forward auth, smaller teams | Authentik | UI-first flows, forward auth for apps without SSO, LDAP/SCIM |
| Multi-tenant B2B SaaS | Zitadel | Organizations and delegated administration are first-class; AGPL-3.0 |
| Headless, API-first identity | Ory | Build your own UI on Kratos/Hydra; Apache-2.0 |
| Identity governance and provisioning | midPoint | Joiner-mover-leaver, access certification, role management; EUPL-1.2 |
| Enterprise CIAM and complex federation | WSO2 Identity Server | Mature federation, adaptive MFA, and consent; heavier operations |
What each pattern needs
Workforce SSO
The requirements are usually federation, directory integration, MFA, and application breadth. Keycloak is the default because it has the deepest SAML and LDAP history under a permissive licence. The operational cost is a JVM service, a relational database, and a real upgrade discipline.
Internal apps and forward auth
Many internal applications cannot speak OIDC or SAML. Authentik’s forward-auth mode can put a login layer in front of them at the reverse proxy. The design must still document what the proxy protects and what the application’s own authorization does.
Multi-tenant SaaS
A tenant model is not a tenant_id column. It is organizations, delegated administrators, tenant-scoped roles, and a lifecycle for creation and deletion. Zitadel is built around that model. The AGPL-3.0 licence needs a legal review before the architecture is fixed.
Headless identity
Some product teams want to own the login UI and call identity APIs. Ory fits that model. It is not the shortest path to a working login screen; it is the most flexible path for a team that will build and operate the experience.
Identity governance
Authentication is not governance. midPoint handles provisioning, access certification, role management, and the joiner-mover-leaver lifecycle. It is a different category from an identity provider, and it often sits beside one.
Enterprise CIAM
Large enterprises often need adaptive authentication, consent, deep federation, and a long vendor history. WSO2 Identity Server fits that profile, at the cost of a heavier operating model. It is not the default for a small SSO project.
Deployment baseline
Whatever the product, the operating baseline is similar:
- TLS everywhere, including internal service traffic.
- A supported relational database with backup and tested restore.
- Secrets managed outside the repository.
- High availability sized to the user population, not to a vendor slide.
- Monitoring for login failures, latency, certificate expiry, and database health.
- A documented upgrade path with a rollback.
- Admin access separated from normal user access.
- An audit trail that the business can actually retrieve.
Migration
A migration is a sequence of trust changes, not a single cutover:
- Inventory users, groups, applications, and service accounts.
- Decide which application cohort moves first.
- Broker to the existing IdP while the new platform proves itself.
- Migrate users and credentials with an explicit password and MFA plan.
- Cut over one cohort at a time, with a rollback.
- Retire the old platform only after the last cohort is stable.
Licensing is architecture
- Apache-2.0 — Keycloak, Ory, WSO2 Identity Server. Permissive, with patent language.
- AGPL-3.0 — Zitadel from v3. Strong copyleft; legal review is required for SaaS and distribution models.
- EUPL-1.2 — midPoint. Copyleft with European legal framing.
- Open-core — Authentik core with separately licensed enterprise features. Identify the paid feature dependency before committing.
A licence that the business cannot accept is a technical dead end, no matter how good the demo is.
What this reference does not cover
It is not a client engagement, a lab exploit, a vendor partnership, or a guarantee that a product will fit. It is a starting architecture that must be tested against the actual application estate, directory, and operating team.
What I would do differently
Write the operating model before the product comparison. The question is not only “which product has the feature?” It is “who upgrades it at 2am, who restores the database, and who owns the access review?” The answer changes the shortlist.
Outcome. A reference architecture that maps the identity problem to a product pattern, a deployment model, and a migration path.