Open source AWS Cognito alternatives
Every project in the catalog is MIT, Apache or BSD licensed. 1 projects explicitly describe themselves as a AWS Cognito alternative; 32 more are in the category where AWS Cognito is a typical product.
Projects that call themselves a “AWS Cognito alternative”
Source: the project's GitHub description or README.
supertokens · Authentication & Identity
Alternative to (project's own claim): Auth0, Firebase Auth, AWS Cognito
Common commercial products in this category: Okta
- You add secure login to your application via email, password, social networks, or password-free methods.
- Using Frontend and backend SDK, you manage session token and session renewal processes.
- You provide access control by identifying multi-tenancy, multi-factor authentication, and user roles.
Open source projects in the same category: Authentication & Identity
Category-level information: these projects are the same kind of software as AWS Cognito; they have not claimed to be a one-to-one replacement.
Keycloak
95keycloak · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can add authentication to your applications with minimal effort.
- You can configure user federation and strong authentication features.
- You can secure their services by defining detailed authorisation rules.
- • High number of open issues (3,386)
- ↑ PositiveHacker News
Keycloak: Open-source identity and access management
“I share the same positive experience I read in this thread about Keycloak. Over the years it saved me a huge amount of time that I would have otherwise spent reinventing the wheel. Many thanks to the development team for building such awesome software. One feature that stands…”
- ↑ PositiveHacker News
Keycloak: Open-source identity and access management
“By sits in front of I mean that it's a completely separate web application rather than a framework, library or proxy that is somehow bundled with your application. Whenever you want someone authenticated you redirect the user's browser to Keycloak. Keycloak will redirect the…”
Verified against README · Oct 26, 2026 · source
Authelia
100authelia · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You configure single sign-in (SSO) and OpenID Connect protocols for your applications.
- You provide second-factor verification with security keys, time-based disposable passwords, or mobile notifications.
- You define detailed access control rules based on criteria such as subdomain, user group, and network.
- ↑ PositiveHacker News
Authelia is an open-source authentication/authorization server with 2FA/SSO
“However, Authelia... is not an OAuth or OpenID Connect provider yet (planned in the roadmap) is not a SAML provider yet. does not support authentication against an OAuth or OpenID Connect provider yet. does not support authentication against a SAML provider yet. does not support…”
- • NeutralHacker News
Authelia is an open-source authentication/authorization server with 2FA/SSO
“One of the Authelia devs here, we support a variety of methods of deployment as mentioned by a user below and include a systemd unit. If there is any deployment scenario you feel we've not accounted for that you prefer then we'd be more than willing to look at implementing it.”
Verified against README · Oct 26, 2026 · source
nextauthjs · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You do user authentication with OAuth services, OIDC, email, or Passkeys methods.
- You store your data on your own servers using different database adapters such as MySQL, Postgres, MongoDB.
- You can configure session security with JSON Web Token encryption and custom cookie policies.
- • High number of open issues (603)
- ↑ PositiveGitHub Issue
Need to set NEXTAUTH_URL dynamically as an Option for multi-domain/multi-tenant use
“**Your question** How to dynamically work with Passwordless/Email auth, without setting NEXTAUTH_URL. **What are you trying to do** I am working on a use-case where NEXTAUTH_URL is not fixed at deploy-time or build-time, but run-time, for a multi-domain (single codebase)…”
- ↓ NegativeGitHub Issue
Request timed out error while using Google provider
“### Description 🐜 After following the docs for Prisma Adapter and Google Provider, I added auth to my repo, but when trying to log in through google auth, it's timing out for some reason. 
Verified against README · Oct 26, 2026 · source
devise
100heartcombo · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can manage user registration and login operations through the database.
- With OmniAuth support, you can provide authentication through third-party services.
- You can configure security processes such as password reset, email confirmation, and session timeout.
- • NeutralGitHub Issue
getting "Can't verify CSRF token authenticity" even if csrf toke in present
“I'm doing simple authentication (without ajax or api) and getting error for csrf authenticity token. I'm using latest version of rails and devise check the post request below ``` Parameters: {"utf8"=>"✓", "authenticity_token"=>"SJnGhXXUXjncnPhCdg3muV2GYCA8CX2LVFV78pqddD4=",…”
- • NeutralGitHub Issue
True ORM-agnosticism: There should be a clear and simple API requirement for models, like how action_pack has active_mod
“Right now, devise pretends to be ORM-agnostic by having a lib/devise/orm/ directory with ORM implementations, but interfaces with the ORM in an ActiveRecord-specific manner, using the find(_) and update_attributes(_) methods and assuming an ActiveRecord-like hooks API. Instead,…”
Verified against README · Oct 26, 2026 · source
casbin
100apache · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You implement authorization controls based on ACL, RBAC and ABAC models.
- You create correct access policies through the online editor.
- You manage authorization processes in Golang projects.
- ↑ PositiveHacker News
Casbin: An authorization library that supports authz models like ACL, RBAC, ABAC
“We're actively evaluating this, particular b/c: Open, dynamic acl+rbc = modern google-docs-style policies for regular webapps, postgres adapters = no change in operations (vs keycloak, orly, ..). That's been a fairly unique combo. However, we're still doing our own eval because…”
- • NeutralHacker News
Casbin: An authorization library that supports authz models like ACL, RBAC, ABAC
“Some factors where merely psychological, such a mistrust due to misleading partners listed in the website that should use the lib. For instance one logo is the one of SpaceX, which sadly is just a user group, nothing official. Another mention is Google which I didn’t find any…”
Sa-Token
100dromara · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- With a one-line code call, you perform user logins.
- You add permission control with annotations such as @SaCheckPermission or with route cutters (interceptor) API ends.
- You can terminate sessions of a specific account ID and remove users from the system.
Verified against README · Oct 25, 2026 · source
hydra
84ory · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can connect your existing identity providers to the OAuth 2.0 and OpenID Connect protocols.
- You can manage user login and approval processes with your own interfaces.
- You can perform token creation and verification on your high-traffic applications.
- ↓ NegativeHacker News
Hydra: A lightweight OS X window manager with a powerful API
“I'm not sure I fully agree. For example > Hydra must be stable. It should never crash It's clearly better to have an app that never crashes than an equivalent one that crashes all the time. However, making sure that your app is 100% crash-free isn't a zero cost thing. It takes…”
- ↑ PositiveHacker News
Hydra: A lightweight OS X window manager with a powerful API
“This thread really does show the best of Hacker News. I wandered in here intrigued by Hydra and ended up checking out 3 or 4 open-source pieces of software that do similar things thanks to recommendations here. The choice is absolutely brilliant. I love seeing so many…”
oauth2-proxy
100oauth2-proxy · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- By placing it in front of your web applications, you make authentication via OAuth2 or OIDC.
- You integrate it as an intermediate layer into existing reverse proxy server or load stabilizer infrastructures.
- You transfer user information from identity providers to back-end applications via HTTP headers.
Casdoor
100casdoor · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You externalize password management by transferring the authentication processes of your applications to a central server.
- You integrate your modern and old systems through a single server that supports different authentication protocols.
- With Casbin-based authentication models, you define user access rules through the web interface.
- ↑ PositiveHacker News
Casdoor: Open-source IAM and SaaS management solution
“Casdoor is a promising open-source IAM solution: , written in Go and React. All features like OIDC, OAuth 2.0, SAML, CAS, LDAP, WebAuthn and 2FA are all supported. SaaS management is also supported like pricing, subscription etc. Source code: Compared to Keycloak, Casdoor has:…”
kratos
84ory · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can manage user registration and login processes in your application through HTTP API.
- You can integrate methods such as social login, multi-factor authentication, and passkey into your system.
- By switching from providers such as Auth0 or Okta, you can host identity management processes in your own infrastructure.
- • NeutralHacker News
Show HN: Ory Kratos – Open-source identity server written in Go
“That'd depend on the implementation details. Within the Ory ecosystem, you have Kratos (identity management), Hydra (OAuth2 & OIDC server, dealing mostly with token issuance, not so much with identities, which you have to provide externally) and Oathkeeper (API gateway). For…”
- • NeutralHacker News
Show HN: Ory Kratos – Open-source identity server written in Go
“> 1. Ory Kratos provides session-based authentication and user management. > > 2. Ory Hydra is a self-managed server that secures access to your applications and APIs with OAuth 2.0 and OpenID Connect. Sounds about right. > 1. Bugs around traits meant we had issues around…”
drduh · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You store your credentials for GnuPG and SSH hardwareally on YubiKey.
- You transfer signature, encryption and authentication subkeys to the device.
- With the help of the Certify key, you refresh or backup the keys.
- • No published release
- • NeutralGitHub Issue
Using two yubikeys not covered under guide
“So, this might require more feedback, as am currently flummoxed. If you want to use a Yubikey for Windows / MacOS / Linux login as part of a multi-factor authentication, then Yubico advises having a second Yubikey as backup. This works fine, since I can use a Yubikey Nano for…”
- • NeutralGitHub Issue
evaluate materials backup strategy
“Any particular reason not to use tar+gpg for backups? LUKS seems error-prone compared to a single command of encrypting a folder. Thank you for the guide, by the way.”
jwt-auth
95tymondesigns · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can manage user authentication using JWT on their Laravel-based project.
- In Lumen applications, you can protect the API endpoint with a token-based structure.
- You can configure secure session management processes through a standard protocol.
- • High number of open issues (612)
- • NeutralGitHub Issue
Using JWTGuard with Laravel 5.3.x "Guide"
“Okay, I've got a bit of time, and need to set up a new project with Laravel 5.3 and JWTGuard. @tymondesigns I hope you don't mind this being in your issues similar to my other "guide" (#513), and if so I can try and find a different spot, but I don't write blogs or tutorials.…”
- • NeutralGitHub Issue
Laravel 5.5 + Vue.js 2 + JWT Auth 1.0.0-rc.1
“Since I lost tons of time doing **tymon/jwt-auth** work in my application, I decided to share my code in this walkthrough. **FOR LARAVEL:** Add `"tymon/jwt-auth": "1.0.0-rc.1"` to **composer.json** and run `composer update` Add the service provider to the providers array in…”
cas
100apereo · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You can manage central authentication processes using SAML, OAuth and OpenID Connect protocols.
- You can verify user identities through different data sources such as LDAP, RDBMS, MongoDB and RADIUS.
- With methods such as Duo Security, YubiKey, or WebAuthn, you can add multifactor authentication to your applications.
pennersr · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You enable login by username or email.
- You perform authentication through third-party social accounts.
- You integrate authentication streams between local accounts and social accounts.
- • No published release
- ↑ PositiveGitHub Issue
Improve ease of integration for 3rd party REST/JSON APIs
“Hello guys, I am using django allauth in a variety of application that i make and its awesome! Right now, I am trying to develop a login process in two separate steps. I have a client(mobile) social login with some provider(twitter, Facebook) and the client takes the oauth…”
- • NeutralGitHub Issue
Login using code (was: Magic Link Login)
“Logging in with a magic link like on [slack ]( [here](”
nhost
80nhost · Authentication & Identity
Alternative to (project's own claim): Firebase
Common commercial products in this category: Auth0, Okta, AWS Cognito
- Using the PostgreSQL database and Hasura, you instantly create GraphQL API.
- With Nhost CLI, you set up the local development environment and follow the database migration process.
- You perform user authentication and data queries with JavaScript, TypeScript or Flutter clients.
- • NeutralHacker News
Show HN: Nhost – Open source Firebase alternative with GraphQL
“Every Nhost project runs on open source software: - Database (PostgreSQL) - GraphQL API (Hasura) - Auth & Storage (Hasura Backend Plus) - Storage server (Minio) You can read more about self hosting here: We automatically configure and host these open source softwares as part of…”
- • NeutralHacker News
Show HN: Nhost – Open source Firebase alternative with GraphQL
“100% yes. If you want to leave Nhost for some reason we'll help you with that. We already helped one customer in India doing this. They are a consultant agency and their customer had a requirement to be on AWS (We currently use Digital Ocean).”
omniauth
80omniauth · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You do user authentication through different services in your application.
- In the development process, you use the built-in developer strategy for temporary authentication.
- You configure it as intermediate software on rack-based structures or roofs such as Sinatra and Rails.
- • NeutralHacker News
Easy Rails OAuth integration testing with Omniauth and Capybara
“Proper in this case: OmniAuth abstracts away the actual OAuth process and, as is always proper, you should be testing your application code not your libraries.”
- • NeutralHacker News
Easy Rails OAuth integration testing with Omniauth and Capybara
“I recently started using Omniauth & Capybara like this. It seems to work easily enough even for a relative testing novice like me.”
deepstreamIO · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- Through records, you can do real-time document synchronization between clients and backend processes.
- You can set up high-performance messaging systems using the event-based broadcast-subscription structure.
- With remote procedure calls, you can create secure and load-balanced request-response workflows.
- ↑ PositiveGitHub Issue
deepstream.io client for C / C++
“Create a deepstream.io client for C / C++, that connects to deepstream via TCP and supports Authentication, Permissioning, Records, Events and RPCs. It might make sense to take IoT (Arduino etc.) compatibility into account for the design. **Great resources to get started:**…”
- ↑ PositiveGitHub Issue
deepstream.io client for Python
“Create a deepstream.io client for Python, that connects to deepstream via TCP and supports Authentication, Permissioning, Records, Events and RPCs. **Great resources to get started:** [Writing a deepstream client]( [Deepstream Messaging structure]( [Detailed Cucumber Specs for…”
grpc-ecosystem · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You run multiple gRPC interconnectors sequentially with a chain structure.
- You add observable signals with logging, metric collection, and tracking tools.
- You integrate authentication and error recovery mechanisms into gRPC services.
- • NeutralGitHub Issue
go-grpc-middleware.v2: Action Plan.
“Hi :wave: We have tons of stuff to improve in this library and there wasn't really time for this. Let's do it finally! Let's maintain this issue as a single place to track our work. :muscle: cc @domgreen @johanbrandhorst @mwitkow The plan is to start from scratch in the `v2`…”
doorkeeper-gem · Authentication & Identity
Common commercial products in this category: Auth0, Okta, AWS Cognito
- You add Ruby on Rails or OAuth 2 provider functionality to your Grape app.
- You manage different OAuth 2 streams, such as authorization code, renewal token, and client credentials.
- You integrate token cancellation into your application of security standards such as insight (introspective) and PKCE.
- ↓ NegativeHacker News
CSRF in Doorkeeper OAuth2 gem
“While I believe that allowing CSRF is terrible practice, as a user of Doorkeeper, I think the problem here is Digital Ocean's atypical usage of OAuth2. When you request an access token for a resource owner in OAuth2, you are supposed _actually authenticate_ the owner. According…”
- • NeutralHacker News
CSRF in Doorkeeper OAuth2 gem
“This is pretty bad, but I believe it is only possible to get an access token if you also allow malicious/non-trusted users to either create new OAuth client registrations (`Doorkeeper::Application` models) or modify the redirect URI of an existing OAuth client registration. The…”