talira

Tinyauth

The tiniest OpenID Certified authorization and authentication server you have ever seen

open sourceAGPL-3.0-onlyself-hostablefree

Tinyauth adds a login screen in front of self-hosted apps: Traefik, Nginx Proxy Manager, SWAG or Caddy ask it on every request whether the visitor is signed in. People sign in with a username and bcrypt-hashed password with optional TOTP, through Google, GitHub or any OpenID Connect provider such as Pocket ID, from an LDAP directory, or automatically by their Tailscale identity, and Docker labels or environment variables set which users, OAuth groups, paths and IP addresses may reach each app. It is also an OpenID Certified (Basic OP) OpenID Connect provider that apps can use for single sign-on. It's a single Go binary configured only by environment variables or flags, with no admin dashboard, AGPL-3.0 licensed and aimed at homelabs rather than enterprise identity management.

Ways to install

Problems it solves

  • add a login page to self-hosted apps that have no authentication of their own
  • Authelia and Authentik feel like too much to set up for my homelab
  • lightweight forward auth for Traefik that I configure with environment variables
  • protect my Docker containers with a login screen using labels on each container
  • let family and friends sign in with their Google or GitHub account to reach my home server apps
  • put two-factor authentication with TOTP codes in front of apps that only have a password or nothing
  • sign in to my homelab apps through Pocket ID or another OpenID Connect provider
  • use my existing LDAP directory to log in to apps behind Nginx Proxy Manager
  • only allow certain users or OAuth groups into specific self-hosted apps
  • skip the login for devices on my home network IP range but require it from outside
  • log me in automatically when I'm connected over Tailscale
  • a tiny OpenID Connect provider so my self-hosted apps can share one login
  • protect an app behind Caddy or SWAG with a simple shared login
  • require login for an app's admin path but leave its public pages open
  • a forward auth server that runs as one small binary in an LXC container without Docker

View all 18 problems

Features

  • forward authentication for Traefik, Nginx and Nginx Proxy Manager, SWAG and Caddy
  • username and password users (bcrypt hashes) with optional TOTP
  • HTTP Basic authentication for clients that can't show a login page
  • sign-in through Google, GitHub or any OpenID Connect provider, with presets and attribute mapping
  • LDAP authentication and access controls by LDAP groups
  • automatic sign-in from a Tailscale connection
  • access controls per app by user, OAuth whitelist, OIDC or LDAP group, path and IP address, from Docker labels or environment variables
  • bypass authentication for listed IP addresses
  • OpenID Connect provider with discovery, OpenID Certified for the Basic OP profile (from v5.1.0)
  • remote user, email, name, groups and custom headers passed to apps
View 5 more
  • Kubernetes support that discovers access controls from ingresses
  • configured with environment variables, CLI flags or YAML; no dashboard
  • CLI commands to create and verify users and generate TOTP secrets
  • Docker image and Linux binaries for amd64 and arm64
  • optional anonymous heartbeat telemetry, off by default

Limitations

  • Not designed for production setups that need RBAC and granular permissions: the maker recommends Authentik for advanced user management6
  • Doesn't support Microsoft OAuth sign-in: Microsoft's OAuth doesn't meet the OpenID Connect requirements Tinyauth needs7
  • No admin dashboard: users and settings are configured with environment variables, CLI flags or labels68
  • Doesn't work directly on a dynamic DNS hostname such as duckdns.org: Tinyauth and the apps need subdomains of a domain they share9

Capabilities

Has a command line toolplan not known
Has single sign-onplan not known

Alternatives

The same job

These do what Tinyauth does.

  1. authentik The authentication glue you need
  2. Authelia The Single Sign-On Multi-Factor portal for web apps
  3. Pocket ID Easy self-hosted OIDC provider with passkeys
  4. OAuth2 Proxy A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers
  5. Keycloak Open source identity and access management for modern applications and services
  6. Ory Headless, cloud-native identity: authentication, OAuth2/OIDC and permissions

Compare Tinyauth with the top 3