OpenFGA
Relationship-based authorization engine inspired by Google Zanzibar, for modeling and enforcing fine-grained access control as a standalone service.
- Actively maintained
- Foundation-backed
- Well documented
- Permissive license
Overview
OpenFGA is a high-performance authorization and permission engine inspired by Google's Zanzibar paper on relationship-based access control. Rather than embedding authorization logic in application code, OpenFGA runs as a standalone service that applications query over HTTP or gRPC APIs to check whether a given user has permission to perform a given action on a given resource, based on a relationship model you define.
It supports multiple storage backends (in-memory, PostgreSQL, MySQL, and SQLite in beta), ships official SDKs for Java, Node.js, Go, Python, and .NET, and includes a CLI, a Terraform provider for configuring servers as code, and a browser-based Playground for modeling and testing authorization rules. It can also be embedded directly as a Go library rather than run as a separate service. OpenFGA is used in production by companies including Auth0, Grafana Labs, Canonical, and Docker.
It's a fit for teams that need fine-grained, relationship-based authorization (for example, nested groups, shared documents, or org-level permissions) as a queryable service, rather than authentication or a simpler role-based access-control library.
Why it's in this catalog
Catalog rating: ★★★☆☆ (3/5)
Google Zanzibar-style fine-grained authorization service, a genuinely distinct approach vs. RBAC tools like Casbin.
- Emerging
- Foundation-governed
- Categories
- Authentication & Security
- Languages
- Go
- License
- Apache-2.0
Related Projects
Casbin
Apache-2.0Open-source access-control library implementing ACL, RBAC, and ABAC authorization models, with production-ready ports for Go, Java, Python, Node.js, and more.
Actively maintained
- Authentication & Security
Keycloak
Apache-2.0Open source identity and access management solution with single sign-on, OAuth2 and OpenID Connect support.
Actively maintained
- Authentication & Security
Supabase
Apache-2.0Open source Firebase alternative providing a Postgres database, authentication, instant APIs, edge functions, realtime subscriptions and storage.
Actively maintained
- Backend
- Database
- Authentication & Security
SuperTokens
Apache-2.0Open-source, self-hosted authentication core service offering passwordless, social, and email/password login as an alternative to Auth0 or Firebase Auth.
Actively maintained
- Authentication & Security
Spotted an error? Suggest an edit on GitHub.