qmetrics.net

Casdoor

Self-hosted identity provider with SSO and agent MCP gateway

Casdoor screenshot

Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling

Overview

Casdoor stores organizations, user directories, and application clients in one place so surrounding apps delegate sign-in instead of holding passwords. Administrators configure providers, sign-in methods, branding, and policies through the UI rather than redeploying configuration files.

The same user base can authenticate modern SPAs and legacy CAS-only software because one server speaks many protocols. Features include multi-tenant organizations, RBAC with Casbin policies, social and enterprise identity provider connectors, audit logs, and SaaS-style billing hooks on the platform edition.

For AI workloads, a built-in MCP gateway controls access to Model Context Protocol servers, and OpenClaw can ship OpenTelemetry traces into Casdoor entries for agent auditing. A marketplace offers one-click SSO recipes for tools such as Grafana, GitLab, Nextcloud, Vaultwarden, and Argo CD.

Deployment options include a single Go binary with MySQL, PostgreSQL, SQLite, or SQL Server, Docker and Docker Compose paths, Helm on Kubernetes, and a managed Casdoor Cloud offering. SDKs cover Go, Java, Python, Node.js, .NET, PHP, Rust, and other languages.

Key features

  • OAuth 2.0 and OIDC authorization server
  • SAML 2.0 and CAS enterprise SSO
  • LDAP directory sync or LDAP service
  • SCIM 2.0 provisioning
  • WebAuthn and MFA methods
  • MCP gateway for agents
  • Multi-tenant organizations
  • Marketplace app integrations

Use cases

  • Central SSO for internal applications
  • Enterprise federation with Entra ID or Google
  • Agent and MCP access control
  • Customer identity for SaaS products
  • Legacy CAS application login

Open-source alternative to

Auth0
“Auth0 alternatives” source

Does the same job as

Casdoor doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare Casdoor

Similar software

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

  • Single sign-on across applications
  • OpenID Connect, OAuth 2.0, and SAML
  • Social login and identity brokering
JavaDockerDetails →
★ 38.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

JumpServer

Open-source bastion host for privileged access

JumpServer is a privileged access management platform that unifies secure access to SSH, RDP, Kubernetes, databases, and web assets.

  • SSH and RDP session access
  • Kubernetes pod connections
  • Database connector via web
PythonWeb, Linux, DockerDetails →
★ 32.1k⟳ todayGPL-3.0
Open Source Alternative to:BeyondTrust

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

  • TypeScript auth configuration in code
  • Email and password sessions
  • Social OAuth providers
TypeScriptDetails →
★ 31k⟳ todayMIT
Open Source Alternative to:Amazon CognitoAuth0+3

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

  • OpenID Connect and OAuth 2.0 provider
  • WebAuthn passkeys and FIDO2 keys
  • TOTP and Duo push second factors
GoWeb, DockerDetails →
★ 29.8k⟳ 2 days agoApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

authentik

Self-hosted identity provider for SSO protocols

authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.

  • SAML and OAuth2/OIDC
  • LDAP and RADIUS
  • Application proxy
PythonDockerDetails →
★ 26.6k⟳ todayMIT · open core
Open Source Alternative to:Amazon CognitoAuth0+7