惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
V
V2EX
Vercel News
Vercel News
U
Unit 42
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
J
Java Code Geeks
WordPress大学
WordPress大学
罗磊的独立博客
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG

Cerbos - All Posts

Authentik vs Keycloak: Self-hosted IdP comparison Mapping business requirements to authorization policy for automotive Fine-grained authorization for AI gateways EIC 2026: Stop counting agents, protect what they can touch Agent skill for writing authorization policies in Claude Desktop Identity security in 2026 EIC 2026 takeaways: the identity stack built for humans will not hold up for AI agents Already have authentication? Here's the authorization layer you still need. Tokens are authorization decisions: a guide to policy-driven token issuance What is a Runtime Authorization Platform It's a dimmer switch, not a kill switch. How CISOs are rethinking AI agent governance From maps to bitmaps (and from bitmaps to bitmaps) AuthZEN, Shared Signals, SCIM Events, IPSIE: Notes from the OpenID Enterprise Panel How do you update authorization policies without redeploying your application? IIW42 recap: Where agent authorization got real Cerbos PDP v0.52.0/v0.53.0: Engine performance, security hardening, and CEL path functions Authorization Management Platforms: what they do, how they work, and where they fit PocketOS AI coding agent deleted a production database in 9 seconds Non-Human Identity management still has a blind spot Benefits of on-premise authorization: Why enterprises are moving toward self-hosted Authorization policies: How to write, test, and validate them (faster with AI) Agent skill for writing authorization policies How much does it cost to build authorization in-house? Why centralized authorization governance reduces incident response time OPA alternative Why AI agents make authorization a right now problem Modernizing legacy application authorization: why it’s your biggest security blind spot How to add authorization to legacy applications without code changes 5 authorization blind spots auditors find, and how to fix them Row-level security for Apache Trino, powered by Cerbos Synapse
Supabase alternative in 2026: Best open source auth options
S. B. Writer · 2026-04-29 · via Cerbos - All Posts

Supabase Auth is the authentication service inside Supabase. Supabase Auth handles social logins, passwordless login, phone authentication, and JWTs that integrate directly with PostgreSQL Row-Level Security. That model is convenient when the stack already centers on Supabase and Postgres.

The same model also sets the limit. Authorization stays manual inside database policies, built-in role-based permission management is not there, and the design stays tied to Postgres. That is why teams looking for a Supabase alternative are often deciding between two separate moves: replacing the authentication layer, or keeping Supabase for sign-in and adding a dedicated authorization layer such as Cerbos.

Where Supabase Auth fits well

Supabase Auth is a practical fit when the application already uses Supabase services and the team wants fast setup for standard login flows. Its core feature set includes passwordless login with magic links and one-time passwords, social logins, phone authentication, built-in CAPTCHA protection, and helpers for web and mobile frameworks.

Supabase Auth is also attractive when access control can stay close to the database. JWT claims flow into Postgres RLS, which lets a team enforce access rules without standing up a separate identity provider. For straightforward products, that coupling can feel efficient rather than restrictive.

The problem appears when identity and authorization stop being simple. Once the product needs a clearer role model, broader tenancy support, or permission logic that spans services outside Postgres, Supabase Auth starts to look narrow.

Why teams look beyond Supabase Auth

The core limitation is not authentication. The limitation is scope. Supabase Auth covers sign-in and token issuance, but the authorization model remains something the team builds manually with tables, relationships, and Postgres policies.

That trade-off has consequences. The application becomes more dependent on one database model, multi-tenancy becomes harder to reason about, and permission logic becomes more expensive to review and change over time. Backward compatibility across releases is not always guaranteed, which adds friction for teams that want stable long-term patterns.

This is the main framing for the rest of the comparison. Some alternatives solve the identity problem. Other alternatives solve the permission problem. Very few tools solve both cleanly in one place.

The main Supabase alternatives

SuperTokens

SuperTokens is an authentication solution that focuses on simple login flows. SuperTokens provides prebuilt UI, email and password login, passwordless login, social logins, multi-factor authentication, and built-in session management.

SuperTokens is the closest Supabase alternative when the goal is to keep authentication lightweight while removing the Postgres dependency. The limitation is scope. SuperTokens does not try to be a full identity provider, and SuperTokens does not cover broader authorization or more advanced federation requirements.

ZITADEL

ZITADEL is a cloud-native identity provider that supports Single Sign-On, MFA, passwordless login, self-hosted deployment, and managed SaaS. ZITADEL also includes multi-tenancy concepts through organizations, projects, and scoped policies, plus APIs, SDKs, and Terraform support.

ZITADEL is a stronger Supabase alternative when the requirement has moved from simple login to a broader identity platform. The trade-off is that ZITADEL is still an identity provider, not a dedicated fine-grained authorization engine. Some integration gaps also remain for apps that do not support OIDC or SAML natively.

Authentik

Authentik is a self-hosted identity provider with MFA, SSO, OIDC, OAuth2, SAML, LDAP, proxy mode, customizable flows, and an admin UI. Authentik can also enforce MFA and SSO in front of applications that do not support those features directly.

Authentik is a stronger fit than Supabase Auth when the team needs protocol coverage, proxy mode, and flexible identity workflows. The trade-off is operational weight. Setup is complex, resource use is heavier, and advanced scenarios often require Python scripting.

Keycloak

Keycloak is a Java-based identity and access management system with SSO, MFA, social logins, federation with external identity providers, and built-in clustering. Keycloak is widely used when protocol support, legacy integration, and enterprise familiarity matter.

Keycloak is a stronger alternative when the real gap is federation and identity infrastructure. The cost is complexity. Keycloak is heavy to run, complex to configure, and still limited on the authorization side to coarse-grained models.

Hanko

Hanko is an authentication service focused on passwordless login and onboarding. Hanko supports WebAuthn, FIDO2, passwords, MFA, social logins, SAML SSO, web and mobile SDKs, and both self-hosted and managed deployment.

Hanko is relevant when the main need is a cleaner authentication experience, especially around passwordless flows. Hanko is not a broad identity platform, and Hanko does not solve advanced authorization requirements.

Supabase Auth compared with the main alternatives

The cleanest way to compare these tools is to compare them on scope first. Supabase Auth, SuperTokens, and Hanko are mainly authentication products. ZITADEL, Authentik, and Keycloak are broader identity platforms. Cerbos sits in a different layer and handles authorization rather than sign-in.

Supabase Auth works best for products that already use Supabase and Postgres. The main limitation is that authorization stays manual inside RLS and the model stays tied to one database backend.

SuperTokens works best for teams that want simpler authentication and session handling without a full IdP. The main limitation is that identity management and authorization remain out of scope.

ZITADEL works best for teams that need a fuller identity provider with multi-tenancy and automation support. The main limitation is that ZITADEL still does not replace a dedicated authorization engine.

Authentik and Keycloak work best for teams that need protocol coverage, federation, and self-hosted identity control. The main limitation is operational complexity.

Cerbos works best when the real pain point is authorization rather than login. Cerbos does not replace authentication, but Cerbos can remove permission logic from database policies and application code.

When the real gap is authorization

This is the part many Supabase comparisons miss. Supabase Auth can authenticate users, but Supabase Auth does not provide a built-in role-based permission system. The application team has to build authorization manually on top of RLS.

Cerbos is an authorization management platform, it provides fine-grained and contextual authorization. Cerbos externalizes policies from application code, supports RBAC, ABAC, and PBAC, logs every decision, and is optimized for sub-millisecond evaluation.

The practical integration pattern is straightforward. Supabase handles sign-in and token validation. The application reads the Supabase user and role data, then sends the principal, resource, and action to Cerbos PDP. Cerbos PDP returns an allow or deny decision, and the application enforces that result.

The Supabase integration guide follows exactly that pattern. A login route authenticates the user through Supabase. A protected route validates the bearer token with Supabase, extracts the role from user metadata, and asks Cerbos whether that user can read a document resource. That pattern keeps authentication and authorization separate, which makes each layer easier to reason about.

Cerbos Hub belongs in the evaluation when teams using Cerbos PDP need more structure around policy operations. Cerbos Hub adds advanced enterprise features such as policy authoring UI, programmatic policy management, and interactive playgrounds. Cerbos Hub complements Cerbos PDP when the team needs governance and workflow around policy changes.

What is the best Supabase alternative

The best Supabase alternative depends on what needs to change. If the goal is lighter authentication without a Postgres lock-in, SuperTokens is the closest fit. If the goal is a fuller identity platform, ZITADEL, Authentik, or Keycloak are better fits.

If the real problem is authorization, replacing Supabase Auth may not be the first move at all. In that case, the more direct step is to keep Supabase for authentication and move authorization into Cerbos PDP.

Key takeaways

  • Supabase Auth is strongest when the product already runs on Supabase and Postgres and the login requirements are still standard.
  • Supabase Auth becomes harder to scale when authorization logic grows beyond straightforward RLS policies.
  • SuperTokens and Hanko are closer alternatives when the goal is simple authentication without a full identity platform.
  • ZITADEL, Authentik, and Keycloak are better alternatives when the requirement has expanded into identity infrastructure.
  • Cerbos addresses the part Supabase Auth leaves manual, which is fine-grained authorization across services and resources. Cerbos also provides features such as: policy authoring, policy management, and governance.