Fine-grained authorization

Fine-grained authorization, built into your auth server

Authorizer embeds OpenFGA, the open-source implementation of Google's Zanzibar model. You describe your domain as types and relations, grant access with relationship tuples, and ask Authorizer whether a user may act on an object — with the same server that signs them in.

What you can model

  • Document sharing with owners, editors and viewers.
  • Hierarchies: documents inherit access from folders, projects or organizations.
  • Groups, roles as objects, public access and block lists.
  • Conditions such as grants that expire, evaluated against the server's clock.

Ask the question from any client

check_permissions answers up to 100 relation/object checks in one call and list_permissions lists what a user can access. Both are available over GraphQL, REST and gRPC, in the Go, JavaScript and Python SDKs, and as MCP tools. The subject defaults to the caller's own token, so a user can't ask about someone else.

query {
  check_permissions(params: {
    checks: [{ relation: "can_view", object: "document:q4-plan" }]
  }) { results { object allowed } }
}

Permission-aware RAG

Before an AI assistant retrieves documents, ask Authorizer which documents the user may see and pass that list to the vector search as a filter. Forbidden documents are never retrieved or placed in the prompt, and revoking a tuple takes effect on the next question without re-indexing.

Frequently asked questions

Do I need to run OpenFGA separately?
No. OpenFGA runs inside the Authorizer binary and stores its data in your SQL database by default; you can point it at a separate PostgreSQL, MySQL or SQLite store with --fga-store.
How is this different from RBAC?
RBAC answers whether a user has a role. Fine-grained authorization answers whether a user may act on one specific object, based on relationships such as ownership, team membership or a parent folder. Authorizer supports both.