11 open-source alternatives ranked by real activity

Open-source Amazon Cognito alternatives

A curated, ranked list of the 11 best open-source alternatives to Amazon Cognito.

The best open-source alternative to Amazon Cognito is Keycloak. If that doesn't suit you, other good options are Casdoor, ZITADEL, Logto and SuperTokens.

Commercial alternatives to Amazon Cognito include Google Cloud Identity Platform, Auth0, Microsoft Entra ID and Scalekit. See all 20.

Amazon Cognito alternatives are mainly auth & identity tools. 9 of them shipped code in the last 30 days, 11 can be self-hosted, and 9 use a permissive licence.

Last updated November 13, 2026 · ranked by GitHub stars, growth and recent commits

Keycloak

Keycloak is an open-source identity and access management server that adds single sign-on, user management and authorization to applications.

GitHub stars
38k
Last commit
yesterday
Latest release
26.8.2
Licence
Apache-2.0
Self-hosted
Yes
keycloak.orgKeycloak homepage screenshot

Keycloak is an open-source identity and access management server. It lets application teams add authentication and secure services without building their own login system, since Keycloak handles storing users and authenticating them. The project is written in Java, released under the Apache-2.0 license and governed under the Cloud Native Computing Foundation code of conduct.

Keycloak supports standard protocols such as OpenID Connect and SAML, and offers user federation, strong authentication, user management and fine-grained authorization. You can run it from the downloadable distribution using a start-dev command, or use the official Docker image published on Quay for containers and Kubernetes setups. The project provides documentation, a user mailing list and community channels for help, along with guidance for building and testing from source.

Key features

  • Single sign-on with OpenID Connect and SAML
  • User federation with external directories
  • Strong and multi-step authentication options
  • Central user and account management
  • Fine-grained authorization policies
  • Docker image and standalone distribution

Pricing: Free and open source under the Apache-2.0 license; you host and operate it yourself.

Read more about KeycloakWebsiteGitHub#1 Amazon Cognito alternative

Casdoor

An open-source identity and access management platform written in Go, providing single sign-on, OAuth, OIDC, SAML, MFA and a web console for users and applications.

GitHub stars
15k
Last commit
2 days ago
Latest release
v4.27.1
Licence
Apache-2.0
Self-hosted
Yes
casdoor.aiCasdoor homepage screenshot

Casdoor is a self-hosted identity and access management platform with a web console. It acts as a single sign-on and authentication server, so applications can delegate login to it instead of implementing their own user management, sessions and password handling.

Supported protocols include OIDC, OAuth 2.0, SAML 2.0, LDAP, CAS and SCIM 2.0, alongside WebAuthn, TOTP and MCP, and it can connect to identity providers such as Google Workspace, Microsoft Entra ID and GitHub. Sign-in options include passwords, email or SMS codes, WebAuthn and Face ID, plus any social providers you enable. The admin console covers users, tokens, organizations, providers and applications, and settings change without a redeploy or config file.

Casdoor is written in Go and licensed under Apache-2.0. A quick trial runs on SQLite with sample data and needs no separate database or config file. Its newer positioning emphasizes AI agents, with an MCP and agent gateway for LLM tooling, and hosted demo instances are available for trying it before installing.

Key features

  • Single sign-on and authentication server
  • OIDC, OAuth 2.0 and SAML support
  • LDAP, CAS and SCIM integration
  • WebAuthn, TOTP and MFA
  • Social and enterprise identity providers
  • Web console for users and organizations
  • MCP and agent gateway features

Pricing: Free and open source under the Apache-2.0 licence.

Read more about CasdoorWebsiteGitHub#2 Amazon Cognito alternative

ZITADEL

An open-source identity and access management platform with SSO, MFA, passkeys, OIDC, SAML, SCIM and native multi-tenancy, available self-hosted or as a cloud service.

GitHub stars
16k
Last commit
yesterday
Latest release
v4.20.2
Licence
AGPL-3.0
Self-hosted
Yes
Hosted version
Available
zitadel.comZITADEL homepage screenshot

ZITADEL is an identity and access management platform, open source, for teams that need more than basic login. It targets SaaS products, B2B platforms and self-hosted IAM stacks, and bundles single sign-on, multi-factor authentication, passkeys, OIDC, SAML and SCIM in an API-first design, with an emphasis on a mature multi-tenancy model.

A comparison table in the README sets it against FusionAuth, Keycloak and Auth0 or Okta on points such as open-source status, self-hosting, infrastructure-level tenants, native B2B organizations and a comprehensive event-stream audit trail. Topics list standards and features including OAuth 2, OpenID Connect, FIDO2, 2FA and passkeys. The positioning is that you can own the identity layer without vendor lock-in while still getting a polished product.

ZITADEL is written in Go and licensed under AGPL-3.0, with a website, chat, docs and blog. You can run it yourself or use the vendor's managed cloud. It suits developers and security teams building multi-tenant applications who want a self-hostable alternative to commercial identity providers.

Key features

  • Single sign-on with OIDC and SAML
  • Multi-factor authentication and passkeys
  • SCIM user provisioning support
  • Native multi-tenancy with B2B organizations
  • Event-stream audit trail
  • API-first, self-hostable design

Pricing: Free cloud plan for 100 daily active users. Pro costs $100 per month and includes 25,000 daily active users; Enterprise is custom and can run on your own infrastructure.

Read more about ZITADELWebsiteGitHub#3 Amazon Cognito alternative

Logto

Open-source identity infrastructure that adds sign-in, enterprise SSO and role-based access control to SaaS and AI products, using OIDC and OAuth 2.1 standards.

GitHub stars
15k
Last commit
yesterday
Latest release
v1.46.0
Licence
MPL-2.0
Self-hosted
Yes
Hosted version
Available
logto.ioLogto homepage screenshot

Logto is an open-source identity platform that handles sign-in, sign-up and access control so product teams do not have to build them from scratch. It is built on OpenID Connect and OAuth 2.1, with SAML also supported, and is aimed at SaaS products and AI or agent-based platforms that need production-ready authentication.

Out of the box it provides multi-tenancy and organizations with member invites and role-based access, enterprise SSO, and prebuilt sign-in flows with a customizable interface. Sign-in options include social login, passwordless methods, MFA and Google One Tap, and it can connect to external identity providers such as Google, Azure AD and Okta. SDKs cover more than 30 frameworks, among them React, Next.js, Angular, Vue, Flutter, Go and Python.

The core is licensed under MPL-2.0 and can be self-hosted by following the OSS installation guide or run locally for development. Logto Cloud offers the same product as a fully managed service. The project also advertises support for the Model Context Protocol and agent-style AI architectures.

Key features

  • OIDC, OAuth 2.1 and SAML support
  • Multi-tenancy with organization RBAC
  • Enterprise single sign-on
  • Prebuilt, customizable sign-in flows
  • Social login, passwordless and MFA
  • SDKs for over 30 frameworks
  • Machine-to-machine access for APIs and CLIs

Pricing: Free cloud plan for up to 50,000 MAU. Pro starts at $24 per month plus token usage and add-ons; Enterprise is quoted, and self-hosting is available.

Read more about LogtoWebsiteGitHub#4 Amazon Cognito alternative

SuperTokens

An open-source authentication provider offering login, session management, MFA and multi-tenancy through frontend and backend SDKs and a Java core service.

GitHub stars
15k
Last commit
7 days ago
Latest release
v12.5.0
Self-hosted
Yes
Hosted version
Available
supertokens.comSuperTokens homepage screenshot

SuperTokens is an open-source authentication provider positioned as an alternative to Auth0, Firebase Auth and AWS Cognito. It adds secure login and session management to your apps, with SDKs for popular languages and frameworks such as Node.js, Go, Python, React and React Native.

Its architecture has three building blocks: a frontend SDK that manages session tokens and renders login UI widgets, a backend SDK that provides the APIs for sign-up, sign-in, sign-out and session refreshing, and the SuperTokens Core, an HTTP service in Java that implements the authentication logic and database operations used by the backend SDK. The feature list spans passwordless and social sign-in, email and phone with password, session handling, MFA, multi-tenant organizations with enterprise SSO, user roles, authentication between microservices, and a dashboard for managing users.

You can self-host the core to keep user data in your own database, or use the vendor's managed offering. The repository's license is listed as 'Other' on GitHub, because enterprise features sit under a separate license, so check which features you need. It suits teams that want to own authentication without building it from scratch.

Key features

  • Email-password, passwordless and social login
  • Session management with token refresh
  • Multi-factor authentication support
  • Multi-tenancy and enterprise SSO
  • User roles and microservice authentication
  • User management dashboard

Pricing: Self-hosting is free at any scale. The managed cloud is free below 5K monthly active users, then $0.02 per active user per month, plus optional paid add-ons.

Read more about SuperTokensWebsiteGitHub#5 Amazon Cognito alternative

Authgear

Open-source customer authentication platform offering passkeys, SSO, MFA, passwordless login, and biometric sign-in, available self-hosted or as Authgear Cloud.

GitHub stars
2.2k
Last commit
today
Latest release
2026-11-04.0
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
authgear.comAuthgear homepage screenshot

Authgear is an open-source authentication solution for consumer-facing applications, presented as an alternative to Auth0, Keycloak, Clerk, and Firebase Auth. It is written in Go and released under the Apache-2.0 license, and can be self-hosted or used on Authgear Cloud. SDKs and a management portal help developers get started in a few minutes.

Out-of-the-box features include passwordless login through magic link or one-time codes over email, SMS, and WhatsApp, passkeys, pre-built sign-up, login, and account settings pages, biometric login on iOS and Android, and two-factor authentication with TOTP, SMS, or email. It supports OIDC, OAuth 2.0, and SAML for SSO, enterprise connections such as ADFS and LDAP, and security features like audit logs, brute-force protection, and rate limits.

The Authgear Portal provides a web interface for user management and configuration, and an Admin API in GraphQL manages resources programmatically. It suits SaaS products and multi-app ecosystems that need flexible authentication without building it themselves.

Key features

  • Passkeys and passwordless login
  • Pre-built login, signup, and account pages
  • Biometric login on iOS and Android
  • TOTP, SMS, and email two-factor authentication
  • OIDC, OAuth 2.0, and SAML single sign-on
  • Admin portal and GraphQL Admin API
  • Audit logs and brute-force protection

Pricing: A free plan includes unlimited MAUs. Developers costs $50 and Business $500 per month, with a 30-day money-back guarantee; Enterprise is custom and the software can also be self-hosted.

Read more about AuthgearWebsiteGitHub#6 Amazon Cognito alternative

Supabase Auth

Go-based user management and authentication server from Supabase that issues JWTs and supports email, passwordless, phone, and social sign-in.

GitHub stars
2.6k
Last commit
yesterday
Latest release
v2.197.0
Licence
MIT
Self-hosted
Yes
Hosted version
Available
supabase.comSupabase Auth homepage screenshot

Supabase Auth is an authentication and user management server written in Go. It powers Supabase's sign-in features by issuing JSON Web Tokens that downstream services, such as PostgREST with Row Level Security, can trust. It started from Netlify's GoTrue codebase, but both projects have diverged significantly. It is released under the MIT license.

Supported sign-in methods include email and password, magic links, phone numbers, and external providers such as Google, Apple, Facebook, and Discord. The server exposes an HTTP API for managing users and sessions, and its configuration is handled through environment variables in a .env file, with an example file provided.

The README walks through a quick start using a local Postgres database and has sections on running in production, configuration, and endpoints. The service can be used as part of the Supabase hosted platform or run on its own, which suits teams that want an open-source JWT-based identity service they can host themselves.

Key features

  • JWT issuing for application sessions
  • Email and password sign-in
  • Magic link and phone number login
  • OAuth providers such as Google and Apple
  • User management API
  • Row Level Security integration with PostgREST

Pricing: Free and open source under the MIT license; it is also available through the hosted Supabase platform.

Read more about Supabase AuthWebsiteGitHub#7 Amazon Cognito alternative

Ory Hydra

Ory Hydra is a certified OAuth 2.0 and OpenID Connect server that plugs into your existing user management through headless APIs, self-hosted or hosted.

GitHub stars
18k
Last commit
3 mo ago
Latest release
v26.2.0
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
ory.comOry Hydra homepage screenshot

Ory Hydra is an OAuth 2.0 authorization server and an implementation of OpenID Connect Core 1.0. It is designed as a standalone server without user management, so it connects to whatever identity provider you already use through a login and consent app, leaving you in control of the user interface.

It handles OAuth 2.0 and OpenID Connect flows, issues and validates tokens, manages clients, orchestrates login and consent flows and manages JWKS. The project says it is tuned for low latency and high throughput with modest resource use, and it is OpenID Certified. It works with any authentication endpoint, including Ory Kratos, and belongs to an ecosystem that also includes Oathkeeper for access proxying and Keto for access control policies.

Hydra is written in Go and licensed under Apache-2.0. You can consume it as a managed service on Ory Network or self-host it, and a quickstart, documentation and telemetry notes are provided in the repository.

Key features

  • OAuth 2.0 and OpenID Connect server
  • Token issuance and validation
  • Client management
  • Login and consent flow orchestration
  • JWKS management
  • Headless APIs for any identity provider

Pricing: Ory Network has a free Developer plan. Production is $770 and Growth $9350 per year plus usage fees; Enterprise and the self-hosted license are quoted.

Read more about Ory HydraWebsiteGitHub#8 Amazon Cognito alternative

Authorizer

Self-hosted authentication and authorization server with OAuth2/OIDC, social login, MFA, magic links, and RBAC that works with more than a dozen database backends.

GitHub stars
2.1k
Last commit
4 days ago
Latest release
2.4.4
Licence
Apache-2.0
Self-hosted
Yes
authorizer.devAuthorizer homepage screenshot

Authorizer is an open-source authentication and authorization server written in Go that you can host yourself. Its pitch is that you bring your own database and stay in control of user data. It supports more than 13 backends, including Postgres, MySQL, SQLite, SQL Server, MariaDB, Cassandra, ScyllaDB, MongoDB, ArangoDB, DynamoDB, and Couchbase. It is released under the Apache-2.0 license.

From one place it offers OAuth 2.0 and OpenID Connect, social login, multi-factor authentication, magic links, role-based access control, webhooks, and email templates, and it ships with a built-in login page and an admin panel. Version 2 is configured entirely through command-line arguments and does not read .env files or operating system environment variables.

You can run it as a Docker image or micro-service in your own infrastructure, or deploy it quickly on Railway. It suits developers who want a hosted-auth style experience without lock-in and with a choice of database.

Key features

  • OAuth 2.0 and OpenID Connect provider
  • Social login and magic links
  • Multi-factor authentication
  • Role-based access control
  • Built-in login page and admin panel
  • 13+ database backends
  • Webhooks and email templates

Pricing: Free and open source under the Apache-2.0 license.

Read more about AuthorizerWebsiteGitHub#9 Amazon Cognito alternative

WSO2 Identity Server

WSO2 Identity Server is an open-source identity and access management platform for single sign-on, federation and API access control, deployable on-premises or in the cloud.

GitHub stars
889
Last commit
2 days ago
Latest release
v7.3.0
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
wso2.github.ioWSO2 Identity Server homepage screenshot

WSO2 Identity Server is an identity and access management solution that organizations can run on premises or in their own cloud environment. It is meant to secure applications for external consumers, an internal workforce, business customers and partners, and API access.

Standards support includes OAuth 2.0, OpenID Connect and SAML 2.0, with single sign-on, multi-factor and adaptive authentication. Recent versions add a visual designer for authentication flows, templates for configuring apps and login methods, simplified role-based access control for API policies, and a new authentication API for in-app login. AI-assisted features can generate flows from natural language descriptions and match branding. B2B capabilities include delegated administration and per-customer login options.

The code is Java and Apache-2.0 licensed. For teams that prefer not to operate it, WSO2 points to Asgardeo, a public identity cloud service built on the same technology core, which it says can be tried free of charge.

Key features

  • SSO with OAuth 2.0, OIDC and SAML 2.0
  • Multi-factor and adaptive authentication
  • Visual designer for login flows
  • Fine-grained role-based API access
  • B2B delegated administration
  • AI-assisted authentication flow generation
  • Templates for app configuration

Pricing: Open source under Apache-2.0; the hosted Asgardeo service is described by WSO2 as free to try.

1 more Amazon Cognito alternative

Commercial Amazon Cognito alternatives

Hosted, closed-source products that compete with Amazon Cognito. Showing 12 of 20.

See every Amazon Cognito alternative on its tool page

Amazon Cognito alternatives: questions

What is the best open-source alternative to Amazon Cognito?
Keycloak is the top-ranked open-source alternative to Amazon Cognito on Enlisted: Keycloak is an open-source identity and access management server that adds single sign-on, user management and authorization to applications. Other strong options are Casdoor, ZITADEL, Logto and SuperTokens.
What are the best commercial alternatives to Amazon Cognito?
Google Cloud Identity Platform, Auth0, Microsoft Entra ID, Scalekit and Clerk are among the hosted, closed-source alternatives to Amazon Cognito listed on Enlisted, which lists 20 in total. Compare their pricing and features on each tool page.
Are these Amazon Cognito alternatives free?
All 11 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 8 also offer a paid or managed cloud version if you'd rather not host it yourself.
How is this list of Amazon Cognito alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 9 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all