
Authelia
Self-hosted SSO and MFA gateway, Apache-2.0 licensed.
Replaces Okta, Microsoft Entra Id, Auth0, Cisco Duo

Who it's for
If you run Jellyfin, Nextcloud, Grafana, and several other services behind a reverse proxy, Authelia gives you a single login portal and enforces TOTP or WebAuthn across all of them without touching each application's settings.
Your self-hosted stack is a single service. The overhead of configuring Authelia plus a database and Redis is not justified for one application.
Teams that hit the free-tier limits on Auth0 or Okta and face per-user billing can move to Authelia on their own infrastructure. Apache-2.0 licensing means no seat-based costs, and the OpenID Connect provider functionality covers most application integrations.
Your team lacks the DevOps capacity to maintain the Authelia instance, database, and Redis over time. A managed identity provider carries that operational overhead for you.
Authelia's forward-auth model fits naturally into an existing reverse proxy setup. The Helm chart covers the Kubernetes path, LDAP integration allows using an existing directory service for users, and Docker images are published for every release.
You need deep SCIM user provisioning, workflow-based access requests, or audit logging at the level of an enterprise IAM product. Authelia covers authentication; it is not a full identity governance platform.
Organizations that cannot route authentication events through third-party cloud services (regulatory requirements, internal policy, or air-gapped environments) gain a fully on-premises authentication layer with Authelia under an Apache-2.0 license.
You operate in an environment where a formal compliance certification (SOC 2, FedRAMP) is required from your identity provider. Authelia does not carry these certifications.
The problem
Managing authentication across a fleet of self-hosted services is tedious and inconsistent. Each application has its own login flow, its own session management, and varying levels of MFA support. Adding TOTP or hardware key support to each service individually means configuring each one separately, and some apps simply lack built-in second-factor support at all. The deeper issue is session fragmentation. A user visiting five internal tools needs five separate logins, and an operator enforcing a security policy must do so five separate ways. Commercial identity providers like Okta and Auth0 address this for cloud deployments but require routing authentication through third-party infrastructure at subscription cost. Self-hosted stacks have historically lacked a practical equivalent.
How it works
Authelia is an OpenID Certified OpenID Connect 1.0 provider, allowing OIDC-capable applications to delegate authentication to it using standard OAuth 2.0 flows. Any app that supports OIDC integration points to Authelia instead of managing its own authentication stack.
Supports TOTP (time-based one-time passwords for authenticator apps), FIDO2/WebAuthn hardware security keys, passkeys, and push notification-based second factors. Users choose the method that fits their setup; access policies can enforce a minimum required factor per domain.
Authelia integrates as a forward authentication endpoint for reverse proxies. Each incoming request passes through Authelia for session validation before the proxy forwards it to the backend service, so applications require no changes to support centralized authentication.
User directories can be backed by LDAP or Active Directory, so Authelia slots into existing enterprise directory structures without requiring a separate user database. Local user files are also supported for smaller deployments without an existing directory service.
Authelia includes Post-Quantum Cryptography support, listed as a primary feature in the project's repository. This positions it for environments that need to prepare cryptographic infrastructure for future threats to current encryption standards.
Ships as a Docker image (`authelia/authelia` on Docker Hub) with an official Helm chart for Kubernetes via charts.authelia.com. Also available as a .deb package, AUR package, and FreeBSD port for deployments that do not use containers.
Features
- OpenID Connect 1.0 and OAuth 2.0 Provider
- Multiple Second-Factor Methods
- Reverse Proxy Forward Authentication
- LDAP and Active Directory Backends
- Post-Quantum Cryptography Ready
- Kubernetes and Docker Deployment
How to install
Deploy using Docker; the official image is `authelia/authelia` on Docker Hub.
docker run -d \
--name authelia \
-p 9091:9091 \
-v /path/to/config:/config \
authelia/authelia:latestRecommended for this setup
Strengths
- Apache-2.0 License with No Per-User Cost: Authelia is licensed under Apache-2.0, which permits commercial internal use, modification, and distribution without licensing fees. Unlike Okta or Auth0, which price per monthly active user, there is no ongoing cost beyond the infrastructure you already run.
- OpenID Certified with Active Development: The OpenID Certified badge means Authelia's OpenID Connect implementation has been tested against the official conformance suite. The project has over 29,000 GitHub stars and was last updated in October 2026, indicating a mature and actively maintained codebase.
- Authentication Layer Without App Changes: The forward-auth integration model means Authelia protects applications without requiring changes to those applications. Any service behind the reverse proxy inherits centralized authentication, which makes adding new services to a protected stack straightforward.
- Credentials Stay on Your Infrastructure: Authentication events, user sessions, and credentials never leave your servers. For teams with data residency requirements or policies that prevent routing authentication through third-party cloud services, an on-premises authentication layer is the only viable path.
Trade-offs
- Multi-Component Setup Required: A production Authelia deployment needs a running reverse proxy, a relational database (Postgres or MySQL), and a Redis instance for session storage. This is more moving parts than a single-binary tool, and the initial configuration involves YAML files covering each protected domain and access policy.
- No Managed or Hosted Option: Authelia is self-hosted only. There is no hosted cloud tier for teams that want the functionality without managing the infrastructure. For organizations that need managed identity with SLA guarantees and on-call support, a commercial provider remains the practical choice.
- Policy Management via YAML at Scale: Access policies and per-domain rules are defined in a YAML configuration file that grows with the number of protected services. Managing hundreds of rules through YAML requires discipline; there is no graphical policy editor in the open-source version.
Tech stack
FAQ
Yes. Authelia is open source under the Apache-2.0 license, which means it is free to run on your own infrastructure for any purpose including commercial internal use. There is no hosted tier, no freemium limit, and no per-user fee. Your only cost is the server you run it on.
A production Authelia deployment requires a reverse proxy, a relational database (Postgres or MySQL), and a Redis instance for session management. The Authelia binary or Docker container connects these components. For testing, SQLite and an in-memory session store simplify the initial setup before moving to a production-grade configuration.
Yes. Authelia supports FIDO2/WebAuthn including passkeys as a second-factor method. Users can register a hardware security key or a device-based platform authenticator. TOTP for authenticator apps and push notification-based second factors are also available as options.
Auth0 is a hosted, managed service with a support contract, compliance certifications, and no infrastructure to operate. Authelia is self-hosted and gives you full data ownership but requires maintaining the server, database, and Redis instance yourself. Authelia is the better choice when data residency or cost at scale drives the decision; Auth0 is the better choice when you need a managed service with zero operational overhead.
Yes. Authelia has been in active development since 2016, holds an OpenID Certified badge for its OpenID Connect implementation, and has over 29,000 GitHub stars with a last push in October 2026. It is used in production by home lab operators and small teams. Large enterprise deployments should evaluate whether Authelia's self-managed model fits their operational capacity.