selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Tinyauth logo

Self-host Tinyauth

v5.2.0

Tiny OpenID Connect certified auth server

ReleaseOpen SourceAGPL-3.0
Updated2 months ago
LanguageGo
Setup difficultyModerate
Stars
8 502
Port
3000 (HTTP server)
Docker
ghcr.io/tinyauthapp/tinyauth
Install with Docker
Tinyauth login screenTinyauth dark mode screenshot

What is Tinyauth?

Tinyauth is a lightweight OpenID Connect certified authentication and authorization server built for self-hosted environments. It functions as both a standalone identity provider and as middleware that plugs into reverse proxies such as Traefik, Nginx, and Caddy. The server handles username and password logins, integrates with LDAP directories, and supports external OAuth providers like GitHub and Google. It also includes built-in TOTP two-factor authentication and per-application access control policies. All settings are controlled through environment variables, and the software is distributed as a single statically linked Go binary with no external runtime dependencies. SQLite is the default data store, with PostgreSQL and in-memory options available. As of version 5.1.0 it holds OpenID certification for the Basic OP profile.

Tinyauth alternatives

Should you self-host Tinyauth?

Tinyauth scores 71/100 on selfhost.directory (how scoring works) and ranks #5 of 40 in Authentication. It has 8 502 GitHub stars, +146 in the last 30 days.

It shipped 8 stable releases in the past year. The latest, v5.2.0, came out on 7 September 2026. New versions land roughly every 10 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is keycloak (86/100, 37 849 stars). It scores higher overall, so compare the two before you pick. See Tinyauth vs keycloak side by side.

Features

  • Access Controls (ACLs)
  • Environment Variable Configuration
  • LDAP Authentication
  • Multiple Database Backends
  • OAuth 2.0 / OpenID Connect provider
  • OAuth Client Support
  • OpenID Connect Certified
  • Reverse Proxy Middleware
  • TOTP two-factor authentication

Tinyauth README

Tinyauth

Tinyauth

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


Note as of 30/10/2026: Right now, Tinyauth is maintained by a single person. AI agents are constantly spamming our repositories with bugs and security reports, some of them valid, some others not. Reviewing and fixing all of them takes a considerable amount of time which I unfortunately do not have. So, If you are a developer and would like to help, please reach out to me on Discord or via hello@tinyauth.app.

How to install Tinyauth

Install Tinyauth with Docker

Docker
Environment variables
TINYAUTH_APPURL, TINYAUTH_AUTH_USERS, etc.

docker run -i -t --rm ghcr.io/tinyauthapp/tinyauth:v5

Official image on ghcr.io

How to configure Tinyauth

  • TINYAUTH_APPURLThe base URL where the app is hosted.
  • TINYAUTH_DATABASE_DRIVERsqliteThe database driver to use. Valid values: sqlite, postgres, memory.
  • TINYAUTH_DATABASE_PATH./tinyauth.dbThe path to the SQLite database file, or connection URL when driver is postgres.
  • TINYAUTH_ANALYTICS_ENABLEDtrueEnable periodic version information collection.
  • TINYAUTH_RESOURCES_ENABLEDtrueEnable the resources server.

Tinyauth releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…