Authelia is a self-hosted, open-source single sign-on and multi-factor authentication server that sits beside a reverse proxy, built by volunteers.
Authelia puts one login portal in front of the web applications a team hosts, and works as a companion to the reverse proxy that already routes traffic to them. It signs users in through a session cookie, OpenID Connect or trusted headers, and asks for a second factor wherever a rule requires one. The project behind it is a group of open-source developers organised as a Core Team and a Maintainers Team, not a company. Sign-in starts with a first factor checked against an LDAP directory or a YAML users file, guarded by Login Regulation and backed by Password Reset with an email check. Second factors are time-based one-time passwords from apps such as Google Authenticator, WebAuthn security keys and passkeys for passwordless login, with Duo push available through a separate Duo account. Authorization Policies match a domain, a resource, a user or group and a network, then apply deny, bypass, one-factor or two-factor to the request. The OpenID Connect 1.0 Provider is OpenID Certified and supports claims policies, custom claims and custom attributes written in Common Expression Language. Outside the browser, the pam_authelia module hands credential checks and two-factor challenges for Linux logins to the same server. Authelia suits self-hosters and small teams who already run Traefik, NGINX or Caddy and want single sign-on in front of their services. It also fits administrators who keep users in LDAP, and developers who need an identity provider under their own control. Teams obtain it as Apache 2.0 licensed code and run it on their own servers, or as several parallel containers on Kubernetes. In a typical setup the proxy sends each request to Authelia, and one sign-in then carries the user across the applications on that domain. Apps that speak OpenID Connect, such as Grafana, Gitea, GitLab and Nextcloud, sign users in through it directly, and the project keeps step-by-step setup guides for each. Access rules then decide per path whether an admin area needs a second factor or whether requests from the internal network may pass straight through. On the servers themselves, pam_authelia brings the same accounts and factors to SSH sessions. The result is one identity, with its second factor, guarding both the web services and the shell of a self-hosted estate.
Pricing
-
Open source
Free
- Apache 2.0 licence, self-hosted on your own servers or Kubernetes
- Login portal, OpenID Connect 1.0 Provider and multi-factor authentication
- No paid tier and no hosted service
- No support contract or uptime SLA
- Second factors are TOTP, WebAuthn and passkeys; push needs a separate Duo account
- No SAML identity provider; it is on the roadmap's planning list
Features
- Not included: SAML 2.0 identity provider
- Included: OpenID Connect identity provider
- Not included: Pre-configured SSO connectors for popular apps
- Not included: Password vaulting for apps without federation
- Not included: End-user app launcher portal
- Not included: Desktop SSO from a domain-joined device
- Not included: Mobile SSO for native apps
- Included: Group-based app assignment
- Not included: IdP-initiated and SP-initiated flows
- Included: Custom attribute mapping and claims
- Not included: Federation with external identity providers
- Included: Per-app sign-on policies
- Not included: Session timeout and global sign-out
- Not included: Custom-branded employee sign-in page
- Not included: Sign-in activity reports
- Not included: Just-in-time user creation on first login
- Not included: Free tier for small teams
- Not included: Uptime SLA published
Additional Features
- OpenID Certified OpenID Connect 1.0 Provider
- Reverse proxy companion for Traefik, NGINX and Caddy
- Session cookie and trusted header single sign-on
- Authorization policies by domain, resource, user, group and network
- Deny, bypass, one-factor and two-factor rule policies
- Passkey passwordless login
- WebAuthn hardware keys, several per user
- Time-based one-time passwords from authenticator apps
Best for
- Self-hosters adding one login to apps behind a reverse proxy
- Small teams already running Traefik, NGINX or Caddy
- Administrators who keep users in LDAP or a YAML file
- Developers who need an OpenID Connect provider they host themselves
- Linux administrators adding two-factor to SSH through PAM
- Apps that sign in over OpenID Connect rather than SAML
- Teams that prefer Apache 2.0 software to a vendor contract
Use cases
- Putting two-factor in front of self-hosted web apps
- Signing in once across apps through a shared session cookie
- Running an OpenID Connect provider for Grafana, Gitea or Nextcloud
- Requiring a second factor on an admin path for one group
- Letting requests from an internal network bypass the portal
- Challenging SSH logins with a second factor through pam_authelia
- Moving users to passkey sign-in
- Letting users reset their LDAP password by email
- Locking out brute-force login attempts
- Mapping LDAP attributes into OpenID Connect claims
Screenshots & Videos
Explore Authelia in action
User Reviews
Compare with Similar Software
Click to compare side by side with Authelia