For most small and mid-sized companies, authentik is the better pick: it speaks OIDC, SAML and LDAP, and its proxy puts even old applications without SSO support behind one shared login. Keycloak is the heavier tool and earns its keep when you federate large AD or LDAP estates or need vendor support. Authelia is enough if all you want is a login with a second factor in front of a handful of web apps. The more important point sits one level up, though: once you self-host a third tool, a central login is the biggest security lever you have.
Why bother with a central login?
It always goes the same way. First Nextcloud, then the password manager, then a wiki, then a ticketing system. Every tool brings its own accounts, its own password rules and its own MFA toggle, and in at least one of them nobody ever switched it on. When someone leaves, you disable their account in four places. Or three, on a bad day.
An identity provider (IdP) flips that around. Accounts, groups and MFA live in exactly one place, and the applications ask it via OIDC or SAML. That’s more convenient, sure. Mainly, though, it’s where security rules actually get enforced, instead of hoping each tool is configured right. For organisations under NIS2 in Germany it’s even written into law: section 30(2) no. 10 of the BSI Act requires solutions for multi-factor or continuous authentication. With an IdP you implement that once for all applications, not twelve times in twelve admin panels.
Keycloak: the heavyweight
Keycloak is the veteran among open-source IdPs. It’s Apache-2.0 licensed, has been a CNCF incubating project since 10 April 2023, supports OpenID Connect, OAuth 2.0 and SAML, and connects directly to existing LDAP and Active Directory servers. The current distribution runs on Quarkus; the old WildFly build is legacy. If you need a vendor behind it, the Red Hat build of Keycloak is the commercially supported version.
That’s its strength and its problem. Keycloak does practically everything an enterprise IdP needs to do, and the admin console shows it: realms, clients, mappers, flows, scopes. A first-time setup means an afternoon spent learning vocabulary rather than onboarding users. For a 30-person company with six applications that’s a lot of machinery. For an estate with a grown AD, several sites and brokering to external IdPs, it’s exactly right.
authentik: the pragmatic all-rounder
authentik comes from the other direction. The core is MIT licensed; only the authentik/enterprise/ directory has its own licence. The free version already speaks OIDC (OpenID Certified), SAML, LDAP, SCIM and RADIUS. The part that matters most for smaller companies is the outposts: a proxy outpost puts an application with zero SSO support behind the authentik login, and an LDAP outpost serves legacy systems that only know LDAP.
In a grown environment, that’s the difference. There’s always some internal tool that has never heard of OIDC, or a printer admin panel. With authentik it still ends up behind the same login and the same second factor. Login sequences are assembled as “flows” in the UI, which is more approachable than Keycloak’s authentication flows but still takes some getting used to.
You pay for extras: authentik Enterprise costs $5 per user per month, billed annually, and adds privileged access management, Google Workspace and Microsoft Entra ID integration and device trust, among other things. Licences are validated locally, so Enterprise also runs air-gapped. A typical small-company setup doesn’t need it.
What about Authelia and Zitadel?
Authelia isn’t a full IdP in the sense of the other two. It’s a login portal that sits next to your reverse proxy (forward auth): the proxy asks Authelia whether a request may pass, and Authelia asks for a password and second factor. It’s Apache-2.0, lean, and OpenID Certified as a provider. Users come from a file or from LDAP. For a homelab or a handful of internal web tools, it’s the most honest answer. For user management with self-service and groups, it simply lacks the foundation.
Zitadel is a newer, API-first IdP. One thing to know: with version 3.0 on 31 March 2025 its licence switched from Apache 2.0 to AGPL-3.0. For internal use that changes little; if you plan to embed it in your own product, read the licence first.
Keycloak vs authentik vs Authelia at a glance
| Keycloak | authentik | Authelia | |
|---|---|---|---|
| Licence | Apache-2.0 | MIT (core), enterprise separate | Apache-2.0 |
| Protocols | OIDC, OAuth 2.0, SAML | OIDC, SAML, LDAP, SCIM, RADIUS | OIDC, forward auth |
| Apps without SSO | needs an extra proxy | built-in proxy outpost | core feature (forward auth) |
| AD/LDAP federation | very mature | available | LDAP as user source |
| Learning curve | steep | moderate | gentle |
| Vendor support | Red Hat build of Keycloak | authentik Enterprise | community |
| Fits | large, grown estates | mixed SME stacks | a few web apps behind a proxy |
The catch: one login for everything fails for everything
Don’t gloss over this. When the IdP is down, nobody gets into Nextcloud, the wiki or the ticketing system. A central login is a single point of failure, and it’s the most attractive target on your network. So from day one you need database backups with a tested restore, monitoring, prompt updates and a documented break-glass admin login that works without SSO. High availability is doable with both main candidates, but for most small companies a properly backed-up single node with a rehearsed restore is enough.
I also wouldn’t start with the IdP if nothing else is self-hosted yet. It pays off once three or four applications hang off it, and then it pays off immediately. The Outline vs Docmost wiki comparison shows how this plays out: Outline requires an external login, so if you already run authentik or Keycloak, you get the more mature wiki at no extra cost. And if you’d rather not maintain the IdP yourself, run it as part of a managed operations setup.
Running several tools with separate accounts and want one login with MFA for all of them? Get in touch — after a short conversation it’s usually clear which IdP fits your stack.