selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Casdoor logo

Self-host Casdoor

v4.29.0

AI-agent-ready IAM & SSO server for OAuth, SAML, LDAP, MCP

ReleaseOpen SourceApache-2.0
docker run -p 8000:8000 casbin/casdoor-all-in-one
Updatedyesterday
LanguageGo
Setup difficultyModerate
Stars
14 869
Ports
8000 (Web UI, sign-in pages and REST API (backend application port)), 389 (Built-in LDAP server), 636 (Built-in LDAPS (LDAP over SSL) server), 1812 (Built-in RADIUS server)
Docker
casbin/casdoor
User-facing sign-in page with password, code, WebAuthn and social login optionsAdmin console dashboard showing users, tokens, organizations and providersApplications list across organizations with their providersApplication settings, providers tab, with per-provider signup/signin toggles

What is Casdoor?

Casdoor alternatives

All self-hosted alternatives to Auth0 → All self-hosted alternatives to Okta → All self-hosted alternatives to Authentik →

Should you self-host Casdoor?

Casdoor scores 78/100 on selfhost.directory (how scoring works) and ranks #3 of 40 in Authentication. It has 14 869 GitHub stars, +318 in the last 30 days.

It shipped 129 stable releases in the past year. The latest, v4.29.0, came out on 15 November 2026. New versions land roughly every 1 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is authentik (80/100, 26 360 stars). It scores higher overall, so compare the two before you pick. See Casdoor vs authentik side by side.

Features

  • Audit Logs
  • Built-in MCP server for AI agents
  • CAS protocol
  • LDAP Support
  • Multi-Factor Authentication
  • Multi-tenancy
  • OAuth 2.0 / OpenID Connect
  • Policy-based authorization (RBAC/ABAC)
  • REST API
  • SAML 2.0
  • SCIM 2.0 provisioning
  • Single Sign-On (SSO)
  • Social Login
  • WebAuthn / Passkeys
  • Webhooks

Casdoor README

Casdoor
An open-source, self-hosted identity and access management platform

Casdoor is a single sign-on (SSO) and authentication server with a web console.
It speaks OAuth 2.0, OIDC, SAML 2.0, CAS, LDAP, SCIM 2.0, WebAuthn, TOTP/MFA and MCP,
and connects to Google Workspace, Microsoft Entra ID (Azure AD), GitHub and many other identity providers.

Website · Documentation · Live demo · Casdoor Cloud · Discord

Release Docker Pulls Build Status golangci-lint OpenSSF Best Practices Discord License

casdoor%2Fcasdoor | Trendshift

Casdoor sign-in page with password, code, WebAuthn and Face ID tabs and social login icons

The sign-in page your users see: password, email/SMS code, WebAuthn and Face ID, plus every social provider you enable.

Casdoor admin console dashboard with user, application and provider statistics Admin console. Users, tokens, organizations and providers at a glance. Casdoor applications list showing several applications with their organizations and providers Applications. Every app that delegates login to Casdoor, across all organizations. Casdoor application settings, Providers tab, with per-provider signup, signin and unlink toggles Application settings. OAuth, SAML, providers and branding — no redeploy, no config file.

How to install Casdoor

Install Casdoor with Docker

docker run -p 8000:8000 casbin/casdoor-all-in-one

The all-in-one image bundles SQLite and demo data for evaluation only; the standard image casbin/casdoor runs against your own database, e.g. docker run -e driverName=mysql -e dataSourceName=... -p 8000:8000 casbin/casdoor:latest.

How to configure Casdoor

  • appnamecasdoorApplication name. Not used at the moment
  • httpport8000Port that the backend application listens on
  • runmodedevRunning mode: dev or prod

    values: dev, prod

  • copyrequestbodytrueWhether to copy request body for later use
  • driverNamemysqlDatabase driver (e.g., mysql, postgres, sqlite)

Casdoor releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…