The Single Sign-On Multi-Factor portal for web apps
open sourceApache-2.0self-hostablefree
Authelia is an open-source authentication and authorization server and login portal that adds multi-factor authentication and single sign-on to your web apps. It works as a companion to reverse proxies (nginx, Traefik, Caddy, HAProxy, Envoy, Skipper and Kubernetes ingress controllers), allowing, denying or redirecting each request according to fine-grained rules by domain, user, group, path, method and network. It is an OpenID Certified OpenID Connect 1.0 provider, supports passkeys, WebAuthn security keys, TOTP and Duo push, password reset by email and login regulation, with users in a file or LDAP. Written in Go, under 20 MB as a container, Apache-2.0 licensed.
Ways to install
On your own server
Problems it solves
- put a login page with two-factor authentication in front of self-hosted apps that have no login of their own
- sign in once and reach all my homelab services behind Traefik or nginx
- require a security key or TOTP code only for admin pages and one factor elsewhere
- allow access to a service only for one user group or only from my home network
- give my self-hosted apps an OpenID Connect provider without running something as heavy as Keycloak
- let users reset their LDAP password themselves by email
- lock out accounts after too many failed login attempts against my exposed services
- protect apps on my Kubernetes cluster through the ingress controller with SSO
- use passkeys to sign in to my self-hosted services
- a tiny auth server that uses almost no memory on a Raspberry Pi
Features
- OpenID Certified OpenID Connect 1.0 / OAuth 2.0 provider
- second factors: FIDO2 WebAuthn security keys, TOTP and Duo mobile push
- passwordless sign-in with passkeys
- password reset with email identity verification
- login regulation: lockout after too many invalid attempts
- access rules by subdomain, user, group, request URI, method and network, with one- or two-factor policy per rule
- forward auth for nginx, Traefik, Caddy, HAProxy, Envoy and Skipper
- Kubernetes ingress support (ingress-nginx, Traefik, Istio, Envoy Gateway) and a Helm chart (beta)
- users in a file or LDAP
- high availability with a remote database and Redis
View 2 more
- post-quantum cryptography ready
- container under 20 MB, memory usage normally under 30 MB
Limitations
- Doesn't act as a SAML 2.0 identity provider: SAML support is in the planning stage of its roadmap2
Alternatives
The same job
These do what Authelia does.
- authentik The authentication glue you need
- Tinyauth The tiniest OpenID Certified authorization and authentication server you have ever seen
- OAuth2 Proxy A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers
- Keycloak Open source identity and access management for modern applications and services
- ZITADEL Identity infrastructure, simplified
- Pocket ID Easy self-hosted OIDC provider with passkeys
