Magic provides passwordless and Web3 authentication using email magic links, social login, and wallet-based sign-in. Cerbos uses the identity tokens Magic issues to evaluate fine-grained authorization policies, so you get passwordless auth paired with resource-level access control.
Authenticate users with Magic's magic links, social login, or Web3 wallets and authorize them with Cerbos policies
Magic handles identity verification. Assign roles in your application and pass them to Cerbos for fine-grained authorization.
Use wallet addresses and decentralized identity from Magic as principal attributes in Cerbos policies
Magic 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.
Magic authenticates users via magic links, social login, or Web3 wallets and issues a decentralized ID (DID) token. Your application validates the DID token, extracts the user's identity, and passes it to Cerbos as a principal along with any application-managed roles or attributes. Cerbos evaluates your authorization policies against this data.
Magic handles authentication but does not manage roles or groups. Your application assigns roles to users after authentication, stored in your database or user management system. Pass these roles to Cerbos alongside the Magic-verified identity, and your policies handle the rest.
Yes. When users authenticate with a Web3 wallet through Magic, you receive the wallet address as part of the identity token. Pass it to Cerbos as a principal attribute and write policies based on wallet address, associated roles, or any other application-managed attributes.



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.