Lion Cipher Lab

Add single sign-on and 2FA to your self-hosted apps with Authelia (forward auth)

Why it matters

The moment you self-host anything — a dashboard, a media server, an admin panel, a home lab tool — you inherit an authentication problem. Many of these apps have weak login pages, shared passwords, or literally no auth at all, and each one is a separate door an attacker can rattle. Forward auth flips that: you put ONE authentication portal in front of everything, so you configure login, lockout, and 2FA in a single place and every app behind the proxy inherits it. This is exactly how mature teams protect internal tooling, and it is the on-ramp to real single sign-on (SSO). Learning it locally…

What you'll learn

Steps in this lab

  1. What forward auth is — and how it differs from per-app login and full SSO
  2. Get Docker, a terminal, and a project folder ready
  3. Lay out the stack: Authelia + Caddy + a dummy app
  4. Generate a hashed password for your user
  5. Write Authelia's users file and main configuration
  6. Point Caddy at Authelia with the forward_auth directive
  7. Start the stack and log in through the portal
  8. Prove it: no session is blocked, a valid session gets 200
  9. The judgment: when to reach for this, the trap, and when NOT to

Open the full interactive lab →