Skip to content
Zenitha

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.

Get Keycloak for $20/mo

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 mattersKeycloakauthentik
Best forApps that support OpenID Connect or SAMLA mix of modern apps and apps with no sign-in of their own
ProtocolsOpenID Connect, OAuth 2.0 and SAMLOAuth2 and OpenID Connect, SAML, LDAP, RADIUS, SCIM, WS-Fed and a proxy provider
Existing directoriesConnects to LDAP and Active Directory, and brokers other OpenID Connect or SAML providersGoogle Workspace and Microsoft Entra ID integrations are Enterprise features
LicenseApache 2.0, a CNCF incubation projectMIT open source edition, plus a paid Enterprise edition
Written inJavaPython
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 mattersKeycloak on Zenithauthentik on Zenith
Price$20 a month$20 a month
IncludedKeycloak, PostgreSQL, HTTPS addressauthentik server and worker, PostgreSQL, HTTPS address
First sign-inTemporary admin account created for youAdmin account on your Zenith email
EmailAdd your own SMTP providerAdd your own SMTP provider
UpkeepManaged, best effort backups and automatic updatesManaged, 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
  1. Keycloak on Zenith (Zenith Hosting)
  2. authentik on Zenith (Zenith Hosting)
  3. Zenith current product reference (Zenith Hosting)
  4. Keycloak features (Keycloak)
  5. Configuring a reverse proxy (Keycloak)
  6. authentik pricing (Authentik Security)
  7. authentik providers (Authentik Security)
  8. authentik outposts (Authentik Security)
  9. authentik embedded outpost (Authentik Security)