Keycloak vs authentik: which SSO should you run?
Choose Keycloak if your apps speak OpenID Connect or SAML and you need realms, identity brokering or LDAP and Active Directory federation. Choose authentik if some apps have no sign-in of their own, since its proxy, LDAP and RADIUS providers cover them, and you want login steps built as flows. Both are open source, and both run on Zenith for $20 a month.
Keycloak vs authentik at a glance
Both are open source identity providers that give your applications one shared sign-in. They differ in what they are built around.
| What matters | Keycloak | authentik |
|---|---|---|
| Best for | Apps that support OpenID Connect or SAML | A mix of modern apps and apps with no sign-in of their own |
| Protocols | OpenID Connect, OAuth 2.0 and SAML | OAuth2 and OpenID Connect, SAML, LDAP, RADIUS, SCIM, WS-Fed and a proxy provider |
| Existing directories | Connects to LDAP and Active Directory, and brokers other OpenID Connect or SAML providers | Google Workspace and Microsoft Entra ID integrations are Enterprise features |
| License | Apache 2.0, a CNCF incubation project | MIT open source edition, plus a paid Enterprise edition |
| Written in | Java | Python |
| On Zenith | $20 a month, with PostgreSQL | $20 a month, with PostgreSQL and the background worker |
What is Keycloak, and when to choose it
Keycloak fits when your applications already speak OpenID Connect or SAML. You group users, roles and clients into realms, let people sign in once across every connected app, and broker logins from other identity providers or social sign-in. It connects to existing LDAP or Active Directory servers, and offers fine-grained authorization services when roles are not enough.
Running Keycloak yourself takes more than a container. Production mode expects a hostname, HTTPS, a database and a reverse proxy that passes the right headers. Our Keycloak Docker guide walks through it. On Zenith that is done for you: Keycloak runs in production mode against its own PostgreSQL database, behind an HTTPS address, with a temporary admin account created at deploy time.
What is authentik, and when to choose it
authentik fits when some of your apps don't support single sign-on. Its proxy provider puts a login in front of an app, through the embedded outpost that runs inside authentik. Its LDAP and RADIUS providers serve older software and network gear. Login, enrollment and recovery are flows you assemble from stages, so you can change the order of steps without code.
On Zenith, authentik runs with its server, background worker and PostgreSQL database. Your admin account uses your Zenith email address, with a generated password in your dashboard. LDAP, RADIUS and remote access providers need an outpost, which you run on your own network and connect back to your Zenith-hosted authentik.
Managed Keycloak and authentik hosting on Zenith
| What matters | Keycloak on Zenith | authentik on Zenith |
|---|---|---|
| Price | $20 a month | $20 a month |
| Included | Keycloak, PostgreSQL, HTTPS address | authentik server and worker, PostgreSQL, HTTPS address |
| First sign-in | Temporary admin account created for you | Admin account on your Zenith email |
| Add your own SMTP provider | Add your own SMTP provider | |
| Upkeep | Managed, best effort backups and automatic updates | Managed, best effort backups and automatic updates |
You can use your own domain for either. If you change the address later, update the redirect URLs in each connected application.
Keycloak and authentik are both in the catalogue. To set up Keycloak yourself instead, follow our Keycloak Docker guide.
Frequently asked questions
- Is authentik better than Keycloak?
- It depends on your apps. If they all support OpenID Connect or SAML, Keycloak is the long-standing choice. If some need LDAP, RADIUS or a login put in front of them, authentik has providers for that built in.
- What is Keycloak?
- An open source identity and access manager, and a CNCF incubation project. It gives applications single sign-on over OpenID Connect, OAuth 2.0 and SAML, with users, roles and clients kept in realms.
- What is authentik?
- An open source identity provider. It signs users in to apps over OAuth2 and OpenID Connect, SAML, LDAP, RADIUS and SCIM, and can put a login in front of apps through its proxy provider.
- Is Keycloak free?
- Yes. Keycloak is open source under the Apache 2.0 license. You pay only for the server it runs on, or $20 a month for managed Keycloak on Zenith.
- Which is easier to run, Keycloak or authentik?
- Both need a PostgreSQL database. authentik runs a server and a background worker. Keycloak is one service, but production mode will not start until you set a hostname and HTTPS. On Zenith both come set up, so neither needs configuring.
- Is there a managed Keycloak?
- Yes. Zenith runs Keycloak with its PostgreSQL database, HTTPS address and backups for $20 a month. You sign in to the Administration Console with an admin account created for you.
- Is authentik free?
- The open source edition is free. authentik Enterprise costs $5 per workforce user a month, billed yearly, and adds features such as Google Workspace and Microsoft Entra ID integrations, mTLS sign-in and enhanced audit logging. Zenith runs the open source edition.
- Can I run authentik's LDAP or RADIUS provider on Zenith?
- Not inside your Zenith app. Those providers run in an outpost, a separate service that connects back to authentik over its API. Zenith serves authentik's web address only, so run the outpost on your own network. The proxy provider works through authentik's embedded outpost.
- What is a good Keycloak alternative?
- authentik is the closest open source alternative that you can run yourself. Both are in the Zenith catalogue at the same price.
- Do password reset emails work out of the box?
- No. Neither app comes with email set up on Zenith, so add your own SMTP provider in its settings before you rely on password reset or verification emails.
No fuss. Pick an app and it's live in minutes.
One monthly price, shown up front. Email, sign-in and file uploads already work.
Sources
- Keycloak on Zenith (Zenith Hosting)
- authentik on Zenith (Zenith Hosting)
- Zenith current product reference (Zenith Hosting)
- Keycloak features (Keycloak)
- Configuring a reverse proxy (Keycloak)
- authentik pricing (Authentik Security)
- authentik providers (Authentik Security)
- authentik outposts (Authentik Security)
- authentik embedded outpost (Authentik Security)