← Back to the blog

November 10, 2026 · 5 min read

Keycloak vs authentik: Self-Hosted SSO Compared

Keycloak vs authentik vs Authelia: which self-hosted identity provider fits a small company's stack, what each costs to run, and why central MFA matters.

AA
Anton Anders
IT consultant & developer

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

KeycloakauthentikAuthelia
LicenceApache-2.0MIT (core), enterprise separateApache-2.0
ProtocolsOIDC, OAuth 2.0, SAMLOIDC, SAML, LDAP, SCIM, RADIUSOIDC, forward auth
Apps without SSOneeds an extra proxybuilt-in proxy outpostcore feature (forward auth)
AD/LDAP federationvery matureavailableLDAP as user source
Learning curvesteepmoderategentle
Vendor supportRed Hat build of Keycloakauthentik Enterprisecommunity
Fitslarge, grown estatesmixed SME stacksa 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.

Frequently asked questions

Keycloak or authentik: which is better for a small company? +

For most small and mid-sized companies, authentik. It covers OIDC, SAML, LDAP and RADIUS and ships a proxy that puts applications without any SSO support behind the same login. Keycloak pays off when you federate large Active Directory or LDAP estates or need vendor support through the Red Hat build of Keycloak.

When is Authelia enough instead of a full identity provider? +

When you only need to put a few web applications behind a reverse proxy with a login and a second factor. Authelia works as a forward-auth portal and reads users from a file or LDAP. It isn't a user management system with self-service and group administration.

Does NIS2 require multi-factor authentication? +

Yes. Germany's NIS2 implementation, the BSI Act (BSIG), lists the use of multi-factor or continuous authentication solutions as a minimum measure in section 30(2) no. 10. A central identity provider is the simplest way to enforce that consistently across every application.

What happens when the identity provider goes down? +

Nobody gets into the connected applications. That's why database backups, a tested restore, monitoring and at least one documented break-glass admin login that doesn't depend on SSO belong in the setup from day one.

Sounds like your situation?

Let’s talk about it — free and with no strings attached.