Open-source alternative to Amazon Cognito

Casdoor is a free, open-source Amazon Cognito alternative for adding sign-in to your own apps: hosted sign-in and sign-up pages, social logins, passkeys and two-step sign-in over OpenID Connect, OAuth 2.0 and SAML. Cognito is billed by monthly active users and ties your user accounts to AWS; self-hosted Casdoor has no per-user fee, though you run it yourself and some advanced features need a paid licence key.

Free app Code: Open source Import from Amazon Cognito: No Some setup

Why look for an alternative to Amazon Cognito?

Amazon Cognito is AWS's service for adding sign-up and sign-in to web and mobile apps. User pools store your users, a hosted login page and social logins sit in front of your app, and it is billed by monthly active users.

Developers look for a Cognito alternative when they want their users' accounts outside AWS, a sign-in service they can move between hosts, or no per-user bill as the app grows. Casdoor gives your apps sign-up, sign-in, social logins and two-step sign-in through standard protocols, on a server you run.

How Casdoor compares

Single sign-on and one user list for all your apps, on your server.

Does Cognito's main job, adding sign-in to your own apps: hosted sign-in and sign-up pages you can brand, social logins such as Google, GitHub and Apple, passkeys, authenticator-app and email or SMS codes, and OpenID Connect, OAuth 2.0, SAML and CAS. It adds roles and permissions, separate organizations and SDKs for many languages. Cognito plugs straight into other AWS services and is run for you; with Casdoor you run and back up the server yourself.

Some setup Open source

Moving from Amazon Cognito

There is no Cognito importer, and Cognito does not export password hashes, so users set a new password or sign in with a social login after the move. In Casdoor, create an application for your app, add the social logins you used and brand the login page. List your users with the AWS command-line tool, then bring them in through Casdoor's Excel template. Then point your app's OpenID Connect library, or a Casdoor SDK, at Casdoor in place of Cognito, and test sign-up, sign-in and password reset before you switch.

Questions

What is the best open-source alternative to Amazon Cognito?

Casdoor is the free, open-source alternative to Amazon Cognito for sign-in for your own apps in the catalogue today. Does Cognito's main job, adding sign-in to your own apps: hosted sign-in and sign-up pages you can brand, social logins such as Google, GitHub and Apple, passkeys, authenticator-app and email or SMS codes, and OpenID Connect, OAuth 2.0, SAML and CAS. It adds roles and permissions, separate organizations and SDKs for many languages. Cognito plugs straight into other AWS services and is run for you; with Casdoor you run and back up the server yourself.

Can I move my Cognito users' passwords to Casdoor?

No. Cognito does not let you export passwords, so users set a new one through a reset, or sign in with a social login, after the move.

Does Casdoor work with apps that use OpenID Connect?

Yes. Casdoor is an OpenID Connect and OAuth 2.0 provider, and also speaks SAML and CAS, so standard sign-in libraries work with it.

Which Casdoor features are paid?

Sign-in, sign-up, social logins, passkeys and two-step sign-in are free. A paid licence key adds features such as security policies, push sign-in approval and attribute-based access rules.

Is Casdoor really free compared with Amazon Cognito?

Casdoor is free and open source under the Apache-2.0 licence, with no fee per user or app. Its makers sell licence keys that unlock advanced features, such as security policies, push sign-in approval, attribute-based access rules and access reviews; sign-in, sign-up, social logins and two-step sign-in are free. To run it you need Cloudgate and a server: use hosted Cloudgate, which can also provide the server, or install Cloudgate on a server of your own for free. Cloudgate's plans and prices are at cloudgate.octabyte.io/pricing.

Do I need a developer to replace Amazon Cognito?

Yes, to connect your app. Cloudgate installs Casdoor on your server and you manage users and login pages in its web console, but a developer points your app's sign-in at Casdoor, through a standard OpenID Connect, OAuth 2.0 or SAML library or one of Casdoor's SDKs. That is the same work Cognito or Entra External ID needs.