Skip to content

Best Self-Hosted SSO & Identity Tools

Self-hosted single sign-on and identity providers let you own your logins — one account across every app, with 2FA, OIDC, and SAML on your terms. The options below range from full identity platforms to lightweight forward-auth gateways; compare them on protocols, footprint, and how much of an identity provider you actually need.

We earn commissions when you shop through the links below. Full disclosure →

SSO & Identity apps

SSO & Identity

Authelia

A lightweight, open-source authentication and authorization server providing 2FA and SSO via a forward-auth portal in front of your reverse proxy — a self-hosted gatekeeper for existing apps, not a full identity provider.
Go
moderateRead guide →
SSO & Identity

authentik

An open-source identity provider supporting SAML, OAuth2/OIDC, and LDAP — a flexible, self-hostable alternative to Auth0, Okta, and Azure AD with a visual flow-based login builder.
PythonGoTypeScript
moderateRead guide →
SSO & Identity

Casdoor

An identity and access management server with a web admin console that exposes one user directory over OAuth 2.0, OIDC, SAML, CAS, LDAP and SCIM, with Casbin-based authorization policies. It runs as a single Go binary backed by MySQL, PostgreSQL or SQLite.
GoReact
easyRead guide →
SSO & Identity

Keycloak

A mature, enterprise-grade open-source identity and access management server — SSO, SAML, and OpenID Connect with user federation, built on Quarkus and backed by Red Hat.
JavaQuarkus
hardRead guide →
SSO & Identity

LLDAP

A lightweight LDAP server for user and group management with a web UI, built to be the user directory behind Authelia, Keycloak, Nextcloud and other apps that authenticate over LDAP. It implements an opinionated subset of LDAP rather than a full directory server.
RustSQLite
easyRead guide →
SSO & Identity

Logto

An open-source authentication and authorization service built on OIDC and OAuth 2.1, with multi-tenancy, SSO, RBAC and prebuilt sign-in flows for SaaS and AI apps. It runs as a Node.js service on PostgreSQL, with a separate admin console.
TypeScriptNode.jsPostgreSQL
easyRead guide →
SSO & Identity

OAuth2 Proxy

A reverse proxy and middleware that puts OAuth2 and OIDC sign-in in front of applications that have no login of their own: a generic OIDC client plus provider implementations for Google, Microsoft Entra ID, GitHub, login.gov and others. Runs as a standalone proxy or as an `auth_request` target behind an existing proxy. MIT-licensed Go, stateless with cookie sessions.
Go
easyRead guide →
SSO & Identity

Pocket ID

A simple, self-hostable OIDC provider that lets users sign in to your apps with passkeys only — no passwords, built for small self-hosted setups that just need lightweight SSO.
GoSvelteKit
easyRead guide →
SSO & Identity

SuperTokens

An open-core login provider: the core is a Java service with an HTTP API for sessions, email and password, passwordless and social login, roles and multi-tenancy, which your own backend calls through SuperTokens SDKs while your frontend uses prebuilt sign-in UI. Apache-2.0 outside its `ee/` directory, which is under an enterprise license; this image keeps its data in PostgreSQL.
JavaPostgreSQL
moderateRead guide →
SSO & Identity

Tinyauth

The tiniest self-hosted login screen for your apps — a single small Go container that adds authentication, OAuth login, and access controls in front of Traefik, Nginx, or Caddy, and since v5 doubles as an OpenID Certified OIDC provider.
Go
easyRead guide →
SSO & Identity

Zitadel

A cloud-native, open-source identity and access management platform — OIDC, SAML, and passwordless auth with multi-tenancy built in, a self-hostable alternative to Auth0 and Okta.
Go
hardRead guide →

Head-to-heads in this category

Where to host itaffiliate disclosure
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Replace a paid tool

Common questions

How much RAM do self-hosted apps in SSO & Identity need?

Across the 11 apps in SSO & Identity, minimums run from 128 MB (LLDAP) to 8192 MB (Logto).

Which app in SSO & Identity uses the least RAM?

Of the 10 apps in SSO & Identity we measured, LLDAP used the least: 3 MB at idle (first boot, measured Sep 2026).

Do self-hosted apps in SSO & Identity support Docker?

All 11 apps in SSO & Identity list Docker support.

Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.