# Casdoor

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

- Page: https://cgt.octabyte.io/templates/casdoor/
- Category: Security & sign-in
- Replaces: Auth0, Okta, Amazon Cognito and Microsoft Entra External ID
- Ease of use: Some setup. You sign in as admin with the password Cloudgate creates, then add each app to Casdoor and paste its sign-in details into that app.
- App price: Free. To run it you need Cloudgate (hosted, or free to install yourself) and a server, which hosted Cloudgate can provide.
- License: Apache-2.0
- Good for: Small teams and developers who want one login, with social and two-step sign-in, for several apps
- Official website: https://casdoor.ai
- Documentation: https://casdoor.ai/docs/overview/
- Source code: https://github.com/casdoor/casdoor
- Last updated: 2026-11-20

## What is Casdoor?

Casdoor is self-hosted single sign-on: one login page and user list for all your apps, with social logins, passkeys and two-step sign-in.

Casdoor is a free, open-source, self-hosted single sign-on and user management server, an alternative to Auth0, Okta and AWS Cognito: it keeps one list of your users and gives each of your apps the same sign-in page. People sign in once, with a password, a Google or GitHub account, a passkey or a two-step code, and open every connected app.

Apps connect through standard sign-in methods, OpenID Connect, OAuth 2.0, SAML, CAS and LDAP, and a built-in Marketplace sets up common self-hosted apps like Nextcloud, GitLab and Grafana in one click. You can run several organizations side by side, for example your staff and your customers, each with its own users and login page. A bakery owner, for example, could give the team one login for the wiki, the helpdesk, the file share and the staff rota, and turn off a leaver's login to all four in one place.

Casdoor is under the Apache 2.0 licence. A paid licence key adds some advanced features that larger organisations ask for, such as security policies and access reviews.

Cloudgate installs Casdoor on a server Cloudgate provides or one you connect, together with its database, and gives it a secure web address. Sign in as admin with the password Cloudgate created, shown on the app's variables page, then add your first app.

## What you can do with Casdoor

- **Give your apps single sign-on**: People sign in once and open every connected app, using OAuth 2.0, OpenID Connect, SAML or CAS.
- **Show a sign-in page with your brand**: Each app gets a login and sign-up page with your logo, the sign-in methods you choose and a forgotten-password link.
- **Sign in with Google, GitHub or Microsoft**: Add social and work logins, such as Google, GitHub and Microsoft Entra ID, next to the usual password.
- **Turn on two-step sign-in and passkeys**: Authenticator app codes, email or text codes, and passkeys or security keys, with a free Casdoor Authenticator phone app.
- **Manage people in one place**: Add users by hand, by invitation or from a spreadsheet, put them in groups and give them roles and permissions.
- **Keep separate organizations apart**: Run several organizations, such as your staff and your customers, each with its own users, apps and login page.
- **Connect older apps and networks**: Casdoor can act as an LDAP directory and a RADIUS server, and sync users from Active Directory.
- **Set up common apps in one click**: The Marketplace sets up single sign-on for apps like Grafana, GitLab, Nextcloud, Gitea and Immich, with a guide for the app's side.

## Replaces Auth0, Okta, Amazon Cognito and Microsoft Entra External ID

Casdoor does the same job as Auth0, Okta, Amazon Cognito and Microsoft Entra External ID. Here is what changes when you switch.

### What you gain

- No per-user fee for single sign-on, social logins and two-step sign-in
- Your users' accounts and sign-in records stay on your own server
- One light server holds several organizations, each with its own login page
- Roles and permissions are built in, not a separate product

### What is different

- You connect each app yourself, apart from the Marketplace's one-click apps
- Some advanced features, such as security policies, push sign-in approval and access reviews, need a paid Casdoor licence key
- If Casdoor is down, nobody can sign in to the connected apps, so keep it backed up
- No import from Auth0; from Okta it can bring over your user accounts

## What happens when you click Deploy?

Deploy link: https://cloudgate.octabyte.app/get-started?template=casdoor

1. **Click Deploy and create your account.** Deploy takes you to Cloudgate. Create an account, or log in if you have one. Casdoor itself is free.
2. **Choose a server.** No server? Get one from Cloudgate: pick a size and a country, and Cloudgate gets it ready. Already have one? Connect it instead.
3. **Cloudgate sets up Casdoor.** It prepares the server, makes the passwords the app needs and starts it. There is nothing to install and nothing to write down.
4. **Open your app and sign in.** Your app gets a free web address to start, without https. Add your own domain, like app.yourshop.com, and Cloudgate secures it with https for you.

## Questions

### Is Casdoor free?

Yes, Casdoor is free and open source under the Apache 2.0 licence, with no limit on users or apps. Single sign-on, social logins, two-step sign-in, LDAP and organizations are all in the free version. You pay only for your server; a paid licence key unlocks some advanced features.

### Which Casdoor features are paid?

A paid Casdoor Commercial or Enterprise licence key adds features such as organization security policies, push-notification sign-in, attribute-based access rules, sending accounts out to other apps over SCIM, more than one user sync, access reviews, delegated admins and tamper-proof audit records. Everything listed on this page works without a key.

### Is Casdoor a good alternative to Auth0?

Yes, if you want to add sign-in to your own apps without a per-user fee. Casdoor gives each app a sign-in and sign-up page, social logins, two-step sign-in and SDKs for most programming languages, all on your own server. Auth0 is a managed service, so with Casdoor you look after updates and backups yourself.

### Can Casdoor give my other apps single sign-on?

Yes, any app that supports OpenID Connect, OAuth 2.0, SAML, CAS or LDAP can sign people in through Casdoor. Its Marketplace sets up apps such as Grafana, GitLab, Nextcloud, Vaultwarden, Gitea, Immich and Portainer in one click; others take a few steps in Casdoor and in the app.

### How do I sign in to Casdoor the first time?

Sign in with the username admin, in the built-in organization, and the password Cloudgate creates, shown on the app's variables page in Cloudgate. Cloudgate sets that password when Casdoor first creates its database, so there is no default password to change and no welcome page for a stranger to claim. Then turn on two-step sign-in for admin.

### Can I move my users from Okta or Auth0 to Casdoor?

Partly. Casdoor's Okta sync can bring in your user accounts from Okta, and it can also sync users from Active Directory, Google Workspace and Microsoft Entra ID. There is no Auth0 import, and the apps themselves need to be connected again.

### What server size do I need for Casdoor?

A small server is enough for most small teams, because Casdoor is one light program plus a PostgreSQL database. Cloudgate sets up both, and you can move to a bigger server later.

### Do I need technical skills to run Casdoor?

No. Click Deploy, create your Cloudgate account and choose a server, and Cloudgate sets up Casdoor and gives it a web address. You use it in your browser like any other online tool.

### Do I need my own server for Casdoor?

No. When you deploy Casdoor, hosted Cloudgate can provide a server. If you already rent one, you can connect it instead.
