
Pair SuperTokens' self-hosted authentication with Cerbos for fine-grained authorization, keeping both identity and access control within your infrastructure.
Run both SuperTokens and Cerbos within your own infrastructure for full control over authentication and authorization data
Use SuperTokens custom session claims and user metadata as attributes in Cerbos policy conditions
Works with any SuperTokens recipe (email/password, passwordless, social login, third-party) without changes to your authorization layer
SuperTokens handles authentication, confirming who a user is. Cerbos handles authorization, deciding what that user can do. Together they give you a complete access control stack without coupling identity logic to business rules.
Cerbos lets you write fine-grained, context-aware authorization policies in human-readable YAML. Policies are decoupled from application code so product and security teams can update permissions without a release cycle.
Because Cerbos runs as a stateless Policy Decision Point (PDP) next to your application, authorization checks are sub-millisecond and scale horizontally with your infrastructure.
SuperTokens is designed for teams that want to own their authentication infrastructure. Cerbos adds fine-grained authorization to that self-hosted stack, so both identity verification and access control decisions happen within your environment.
Teams choosing SuperTokens often do so because they want to avoid third-party dependencies for authentication. Cerbos follows the same philosophy for authorization: it runs as a sidecar or service within your infrastructure, evaluating policies locally with no external API calls. Together, they provide a fully self-hosted identity and access control stack.
Check out the Cerbos documentation to learn how to pass SuperTokens session data to Cerbos for policy evaluation.
Yes. SuperTokens lets you attach custom claims to sessions via the session claim system. Your application reads these claims from the validated session and passes them to Cerbos as principal attributes, where policies can reference them for authorization decisions.
Both SuperTokens and Cerbos can run self-hosted, which means authentication and authorization stay entirely within your infrastructure. No identity data or authorization requests leave your network, which simplifies compliance for regulated environments.
SuperTokens supports multi-tenancy with per-tenant login methods and user pools. The tenant ID and tenant-specific user metadata can be passed to Cerbos as principal attributes, allowing policies to enforce tenant-scoped access rules.



What is Cerbos?
Cerbos is an end-to-end enterprise authorization software for Zero Trust environments and AI-powered systems. It enforces fine-grained, contextual, and continuous authorization across apps, APIs, AI agents, MCP servers, services, and workloads.
Cerbos consists of an open-source Policy Decision Point, Enforcement Point integrations, and a centrally managed Policy Administration Plane (Cerbos Hub) that coordinates unified policy-based authorization across your architecture. Enforce least privilege & maintain full visibility into access decisions with Cerbos authorization.