Skip to content

Keycloak vs Casdoor.

Last verified 2026-05-07

When Keycloak wins

  • Keycloak has auth: step up auth; Casdoor does partially
  • Keycloak has user mgmt: progressive profiling; Casdoor does not
  • Keycloak has Terraform provider; Casdoor does not
  • Keycloak has security: log streams; Casdoor does partially
  • Keycloak has compliance: ccpa; Casdoor does not

When Casdoor wins

  • Casdoor has fine-grained authorization (Zanzibar-style); Keycloak does not
  • Casdoor has auth: magic links; Keycloak does partially
  • Casdoor has auth: sms otp; Keycloak does partially
  • Casdoor has auth: passwordless only flows; Keycloak does partially
  • Casdoor has ReBAC; Keycloak does not
  • Casdoor has B2B Organizations / multi-tenant model; Keycloak does partially

Both win

  • Both support WebAuthn passkeys natively
  • Both support social login at scale

Pricing comparison

MAU bandKeycloakCasdoor
10,000 MAU$250/mo$100/mo
100,000 MAU$800/mo$350/mo
500,000 MAU$2,500/mo$1,200/mo
1,000,000 MAU$5,000/mo$2,200/mo

Side-by-side capability matrix

Authentication
CapabilityKeycloakCasdoor
Password authentication✓ Yes✓ Yes
Social login✓ Yes✓ Yes
Magic links~ Partial✓ Yes
SMS OTP~ Partial✓ Yes
Email OTP✓ Yes✓ Yes
TOTP (authenticator app)✓ Yes✓ Yes
Push MFA✕ No✕ No
WebAuthn / passkeys✓ Yes✓ Yes
Biometric✓ Yes✓ Yes
Hardware security keys✓ Yes✓ Yes
SAML SSO✓ Yes✓ Yes
OIDC SSO✓ Yes✓ Yes
OAuth 2.0 SSO✓ Yes✓ Yes
Enterprise federation✓ Yes✓ Yes
Passwordless-only flows~ Partial✓ Yes
Adaptive MFA~ Partial✕ No
Step-up auth✓ Yes~ Partial
Authorization
CapabilityKeycloakCasdoor
RBAC✓ Yes✓ Yes
ABAC✓ Yes✓ Yes
ReBAC✕ No✓ Yes
FGA engine✕ No✓ Yes
API authorization✓ Yes✓ Yes
Fine-grained permissions✓ Yes✓ Yes
User management
CapabilityKeycloakCasdoor
Self-service registration✓ Yes✓ Yes
Progressive profiling✓ Yes✕ No
Self-service account✓ Yes✓ Yes
Bulk user import✓ Yes✓ Yes
Admin user search✓ Yes✓ Yes
Custom user metadata✓ Yes✓ Yes
Organizations / tenants~ Partial✓ Yes
Multi-tenancy✓ Yes✓ Yes
Developer experience
CapabilityKeycloakCasdoor
REST API✓ Yes✓ Yes
GraphQL API✕ No✕ No
SDKs6 listed8 listed
CLI✓ Yes✓ Yes
Terraform provider✓ Yes✕ No
Local emulator✓ Yes✓ Yes
Extension modelSPI extensions (Java) + custom themesCasbin policy expressions + adapter pattern for storage
Security
CapabilityKeycloakCasdoor
Bot detection✕ No✕ No
Breached password detection~ Partial✕ No
Brute-force protection✓ Yes✓ Yes
Anomaly detection✕ No✕ No
Log streams✓ Yes~ Partial
Audit logs✓ Yes✓ Yes
GDPR data export✓ Yes✓ Yes
PII minimization~ Partial~ Partial
Post-quantum roadmap✕ No✕ No
Agentic identity
CapabilityKeycloakCasdoor
MCP support✕ No✕ No
OAuth 2.1✓ Yes✓ Yes
Dynamic client registration✓ Yes✓ Yes
Agent vs human token separation✕ No✕ No
Web Bot Auth✕ No✕ No
Compliance
CapabilityKeycloakCasdoor
SOC 2 Type II✕ No✕ No
ISO 27001✕ No✕ No
ISO 27018✕ No✕ No
HIPAA✕ No✕ No
PCI DSS✕ No✕ No
GDPR✓ Yes✓ Yes
CCPA✓ Yes✕ No
FedRAMP✕ No✕ No
EU data residency✓ Yes✓ Yes
Consent & privacy
CapabilityKeycloakCasdoor
Consent management~ Partial✕ No
Preference center~ Partial✕ No
Purpose-specific consent~ Partial✕ No
Integrates with CMPsn/an/a

FAQ

How does Keycloak compare to Casdoor on pricing?
Keycloak prices on tiered-mau; Casdoor prices on tiered-mau. See the pricing comparison table on this page for our editorial estimates at 10k / 100k / 500k / 1M MAU using the standard methodology assumptions.
Should I switch from Keycloak to Casdoor?
Switching is a 60–90 day exercise in either direction once SDK rewrites and hooks/Actions migration are accounted for. If your team is hitting cost or feature ceilings on Keycloak, evaluate Casdoor on the specific axes flagged in the "When Casdoor wins" list. If you're operating well within Keycloak, the switching cost rarely pays back.
Do Keycloak and Casdoor both support passkeys?
Both Keycloak and Casdoor support WebAuthn passkeys natively per public documentation. Adoption rates depend on orchestration quality (device-aware prompting, conditional UI), not raw protocol support, see the passwordless guide for the orchestration question.

This comparison is auto-generated from the underlying capability matrix and pricing data on each vendor's profile. Editorial verdict lists below are seeded heuristically from the matrix diff; a maintainer review refines them before the page goes public.

Generated 2026-05-07 · last verified 2026-05-07.