Authelia Alternatives: Authentik, Pocket ID, OAuth2 Proxy, Keycloak

Server-room doors fitted with an access reader

Authentik is the closest one-system replacement for Authelia because it covers forward authentication, OIDC and SAML with a user admin UI. Pocket ID fits small teams that want passkey-only OIDC login, and OAuth2 Proxy fits teams that already run an identity provider and only need the proxy gate. Keycloak suits enterprise federation. Apps without native OIDC need an access proxy whichever provider you choose.

Key Takeaways

  • Pick the category before the product. — Forward authentication at the proxy, a standalone OIDC provider and full identity lifecycle are different jobs. Authentik covers all three. Pocket ID and OAuth2 Proxy each cover one.
  • Apps without native OIDC still need an access proxy. — Pocket ID's documentation states it cannot protect an app with no OIDC support by itself. Pair any OIDC-only provider with OAuth2 Proxy, Tinyauth, caddy-security or Authentik's proxy outpost for those apps.
  • Staying on Authelia is a valid outcome. — If every app is protected by proxy rules and nothing needs SAML, upstream social login or provisioning, Authelia is still doing the job it was built for.

Which alternatives belong on the shortlist?

Option Best fit Trade-off
Authentik Teams that want forward auth, OIDC, SAML, LDAP and a user admin UI in one self-hosted system Heavier to run than Authelia, with more moving parts. Its domain-level forward auth cannot apply different authorization rules per app, so per-app policies need single-application mode.
Pocket ID plus an auth proxy Small teams that want passkey-only login and whose apps mostly speak OIDC Pocket ID only provides OpenID Connect and passwordless sign-in. Non-OIDC apps need a separate proxy such as Tinyauth, caddy-security or OAuth2 Proxy acting as the OIDC client.
OAuth2 Proxy with an existing identity provider Organisations that already have Google Workspace, Entra ID, GitLab, Keycloak or another OIDC provider and only need the proxy gate It is a gate, not a user directory, and it does not provide SAML or SCIM. Users, groups, MFA and recovery stay in the upstream provider. Sessions live in signed, encrypted cookies by default, with Redis as an option when large group claims make cookies unwieldy.
Keycloak Full identity lifecycle with enterprise federation, SAML and identity brokering under a vendor-neutral CNCF project A Java service that needs a supported relational database in production, since its built-in dev-file database is for development only. It does not replace the proxy check on its own, so non-OIDC apps still need OAuth2 Proxy or similar in front.
Stay on Authelia Proxy-protected self-hosted apps with simple user and group rules and no SAML, upstream login or provisioning requirement The OIDC provider is an open beta, the relying-party role is not planned, and dynamic client registration and session management are listed as goals rather than shipped features.

Which Authelia job are you replacing?

Most deployments use two Authelia jobs, and most replacements cover only one. Authelia describes itself as a 2FA and SSO authentication server that extends a reverse proxy. The proxy sends each request to Authelia's authorization endpoint with X-Forwarded headers, and Authelia applies access rules before the app sees traffic. That is how it protects a dashboard with no login of its own.

The second job is the OIDC provider. Authelia is OpenID Certified for the Basic, Implicit, Hybrid, Form Post and Config profiles, but its documentation calls the provider an open beta. It does not act as a relying party, so it cannot hand login off to Google or Entra ID, and the project says it does not intend to add that. Passkey login exists as an option, enable_passkey_login, and Authelia counts it as a single factor.

Write down which job each of your apps uses. A replacement that covers only OIDC will leave every proxy-protected app without a gate.

Do you need forward auth, an OIDC provider or full identity lifecycle?

Decide per app, then combine. Forward authentication keeps the proxy check. OAuth2 Proxy is a CNCF Sandbox project that sits behind Nginx, Traefik or Caddy and validates users against an upstream provider by email, domain or group. It is an access gate only: it does not issue SAML or provision accounts. Authentik's proxy provider offers the same pattern through its outpost, in proxy or forward-auth mode, and sends the user's name, email and groups to the app as headers.

A standalone OIDC provider replaces only the login for apps that speak OIDC. Pocket ID is the lightest documented option: passkey-only, OpenID Certified, built for small teams that find Keycloak or Authentik too much. Its own docs are explicit that apps without OIDC, and apps that only support LDAP or SAML, need an authentication proxy in front.

Full identity lifecycle adds the directory, enrollment, recovery, federation and provisioning. Authentik and Keycloak are the self-hosted candidates. Keycloak's database guide lists supported production databases and warns that its default dev-file store must be replaced before production. Our Authentik alternatives comparison covers those two, plus ZITADEL, in more depth. If the requirement is privileged access to servers rather than staff login to web apps, that is a different category, explained in CyberArk vs Okta.

A hosted gateway such as Cloudflare Access also covers the proxy check, but it still needs an identity source behind it, and it moves the access decision off your own infrastructure. Treat it as a separate decision from the identity provider.

How should you migrate off Authelia?

Inventory first, cut over last. First, record each app's integration type: native OIDC, native SAML, LDAP only, or proxy headers only. A single proxy-only app is enough to require a forward-auth layer, either Authentik's outpost or OAuth2 Proxy, whatever the rest of the estate looks like.

Second, check identity requirements Authelia does not meet. An app that requires SAML needs an identity provider that issues SAML assertions to it, such as Authentik or Keycloak. A proxy gate in front of the app does not supply app-level SAML. Login delegated to an existing corporate provider points to Authentik, Keycloak, or OAuth2 Proxy in front of the provider you already pay for. For SCIM provisioning, check the direction you need (inbound from an HR system or outbound to apps) and which edition includes it before committing. OAuth2 Proxy provides neither SAML nor SCIM, and Pocket ID's docs do not list SAML.

Third, plan credential continuity. Moving providers usually means users enroll second factors and passkeys again. Pocket ID supports one-time login codes issued by an admin to add a first passkey, which is the documented path for that cutover. Confirm the equivalent flow in whichever system you pick before announcing a date.

Fourth, run both systems in parallel. Move one OIDC app and one proxy-protected app first, confirm group claims or headers arrive as the app expects, then migrate the rest. Keep Authelia's access rules as the reference until every rule has a documented equivalent.

Fifth, lock down header trust. Any forward-auth setup passes identity to apps in HTTP headers, so only the proxy may set them. OAuth2 Proxy's integration guide calls for reverse-proxy mode and a trusted-proxy-ip range, and warns that without that option every source address is trusted for backwards compatibility. Confirm that apps cannot be reached directly on their own ports, bypassing the proxy.

Which Authelia alternative should you choose?

Choose Authentik when one self-hosted system should cover proxy-protected apps, OIDC apps and SAML apps with an admin UI. Choose Pocket ID plus a lightweight proxy when passkeys for a small team are the point and most apps already speak OIDC. Choose OAuth2 Proxy when an identity provider already exists and only the gate is missing. Choose Keycloak when federation and governance matter more than footprint. Stay on Authelia when its proxy rules already cover every app and none of the gaps above apply.

How did we compare these options?

We checked the product documentation on December 2, 2026 and compared the options against these criteria.

  • Which of your apps support OIDC natively, and which rely on forward-auth headers from the reverse proxy
  • Whether you need identity lifecycle: an admin UI for users and groups, enrollment and recovery flows, SAML, LDAP or SCIM
  • Whether you need to delegate login upstream to Google, Entra ID or GitHub, which Authelia's OIDC docs say it does not intend to support
  • Operational footprint you will accept: one binary with a file or database backend versus several containers with PostgreSQL

Frequently asked questions

What is the best alternative to Authelia?

It depends on which part of Authelia you use. For forward authentication plus a full identity provider in one system, Authentik. For passkey-only OIDC login on a small team, Pocket ID paired with an authentication proxy. For a proxy gate in front of an identity provider you already run, OAuth2 Proxy. For enterprise federation and governance, Keycloak with a proxy for non-OIDC apps.

Can Pocket ID replace Authelia on its own?

Only if every app you protect supports OpenID Connect. Pocket ID's documentation says it only provides OIDC and cannot protect an app without OIDC support by itself. For those apps it recommends an authentication proxy such as Tinyauth, caddy-security, OAuth2 Proxy or Traefik forward auth acting as the OIDC client.

Does Authelia support SAML or login with Google?

No on both counts. Authelia's documentation lists support for the OpenID Connect provider role only, as an open beta, and states it does not support the relying-party role that would let users sign in through Google, GitHub or another provider. It does not offer a SAML identity provider.

Is OAuth2 Proxy a replacement for Authelia?

It replaces the forward-authentication part only. OAuth2 Proxy sits behind Nginx, Traefik or Caddy and requires users to authenticate with an upstream provider such as Google, Entra ID, GitLab or any OpenID Connect provider. It does not store users, run second-factor enrollment, issue SAML to apps or provision accounts, so the identity side has to live somewhere else. Sessions are kept in signed, encrypted cookies by default, and Redis is an optional session store.

Does Authelia support passkeys?

Yes, as an opt-in setting. Authelia's WebAuthn configuration includes enable_passkey_login, which lets users sign in with a passkey instead of a username and password. Authelia counts that as a single factor and prompts for a password when a rule requires two factors.

Will users need to re-enroll MFA when we migrate?

Plan for it. Second factors and passkeys are bound to the system that registered them, so a move to a new provider normally means users register again. Schedule an enrollment window, and use the new system's admin-issued login or recovery codes for the first sign-in.

Explore More

Ready to Find the Right AI Tools?

Browse our data-driven rankings to find the best AI tools for your team.